mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 11:43:57 +01:00
Mark ApiError
as non_exhaustive
This commit is contained in:
parent
22cfedf708
commit
25db4901e2
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ pub enum RequestError {
|
||||||
/// A kind of an API error.
|
/// A kind of an API error.
|
||||||
#[derive(Debug, Deserialize, PartialEq, Hash, Eq, Clone)]
|
#[derive(Debug, Deserialize, PartialEq, Hash, Eq, Clone)]
|
||||||
#[serde(field_identifier)]
|
#[serde(field_identifier)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum ApiError {
|
pub enum ApiError {
|
||||||
/// Occurs when the bot tries to send message to user who blocked the bot.
|
/// Occurs when the bot tries to send message to user who blocked the bot.
|
||||||
#[serde(rename = "Forbidden: bot was blocked by the user")]
|
#[serde(rename = "Forbidden: bot was blocked by the user")]
|
||||||
|
|
Loading…
Reference in a new issue