Skip to main content

BotResult

Type Alias BotResult 

Source
pub type BotResult<T> = Result<T, ApiError>;
Expand description

Default result type retruned by API calls.

Aliased Type§

pub enum BotResult<T> {
    Ok(T),
    Err(ApiError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ApiError)

Contains the error value