Skip to main content

TelegramResult

Type Alias TelegramResult 

Source
pub type TelegramResult<T> = Result<T, TelegramBotError>;
Expand description

Convenience alias.

Aliased Type§

pub enum TelegramResult<T> {
    Ok(T),
    Err(TelegramBotError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(TelegramBotError)

Contains the error value