Type Alias Result

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

A type alias for a result that can return a cot::Error.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl ApiOperationResponse for Result<Response>

Available on crate feature openapi only.
Source§

fn api_operation_responses( _operation: &mut Operation, _route_context: &RouteContext<'_>, _schema_generator: &mut SchemaGenerator, ) -> Vec<(Option<StatusCode>, Response)>

Returns a list of OpenAPI response objects for this type. Read more