Skip to main content

Response

Type Alias Response 

Source
pub type Response<R, E = HttpError> = Result<R, E>;
Expand description

HTTP Response type - generic over the body type R and error type E This is the primary return type for all HTTP operations

Aliased Type§

pub enum Response<R, E = HttpError> {
    Ok(R),
    Err(E),
}

Variants§

§1.0.0

Ok(R)

Contains the success value

§1.0.0

Err(E)

Contains the error value