[][src]Enum tg_botapi::BotError

pub enum BotError {
    Http(Error),
    Json(Error),
    Api {
        error_code: i64,
        description: String,
        parameters: Option<ResponseParameters>,
    },
}

Variants

Http(Error)
Json(Error)
Api

Fields of Api

error_code: i64description: Stringparameters: Option<ResponseParameters>

Trait Implementations

impl Debug for BotError[src]

impl Display for BotError[src]

impl Error for BotError[src]

impl From<Error> for BotError[src]

impl From<Error> for BotError[src]

Auto Trait Implementations

impl !RefUnwindSafe for BotError

impl Send for BotError

impl Sync for BotError

impl Unpin for BotError

impl !UnwindSafe for BotError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.