Skip to main content

EndpointResult

Type Alias EndpointResult 

Source
pub type EndpointResult = Result<(), EndpointError>;
Expand description

Result of a handler: Ok keeps the response set by the handler, and Err replaces it with an error response.

Aliased Type§

pub enum EndpointResult {
    Ok(()),
    Err(EndpointError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(EndpointError)

Contains the error value