BotXApiResult

Type Alias BotXApiResult 

Source
pub type BotXApiResult<TResponse, TExpressErr> = Result<TResponse, BotXApiError<TExpressErr>>;

Aliased Type§

pub enum BotXApiResult<TResponse, TExpressErr> {
    Ok(TResponse),
    Err(BotXApiError<TExpressErr>),
}

Variants§

§1.0.0

Ok(TResponse)

Contains the success value

§1.0.0

Err(BotXApiError<TExpressErr>)

Contains the error value

Trait Implementations§

Source§

impl<TResponse, TExpressErr> From<ExpressResult<TResponse, TExpressErr>> for BotXApiResult<TResponse, TExpressErr>

Source§

fn from(value: ExpressResult<TResponse, TExpressErr>) -> Self

Converts to this type from the input type.