Type Alias Result

Source
pub type Result<T, H = Box<dyn Error + Send + Sync>> = Result<T, WebhookError<H>>;
Expand description

Convenience Result type for webhook operations

Uses Box<dyn std::error::Error + Send + Sync> as the default handler error type.

Aliased Type§

pub enum Result<T, H = Box<dyn Error + Send + Sync>> {
    Ok(T),
    Err(WebhookError<H>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(WebhookError<H>)

Contains the error value