Mark ApiError as non_exhaustive

This commit is contained in:
Maybe Waffle 2021-10-10 16:40:31 +03:00
parent 22cfedf708
commit 25db4901e2

View file

@ -61,6 +61,7 @@ pub enum RequestError {
/// A kind of an API error.
#[derive(Debug, Deserialize, PartialEq, Hash, Eq, Clone)]
#[serde(field_identifier)]
#[non_exhaustive]
pub enum ApiError {
/// Occurs when the bot tries to send message to user who blocked the bot.
#[serde(rename = "Forbidden: bot was blocked by the user")]