pub type Response = Result<HttpResponse, HttpResponse>;Expand description
Response type alias - allows using ? operator for early returns
Aliased Type§
pub enum Response {
Ok(HttpResponse),
Err(HttpResponse),
}Variants§
Trait Implementations§
Source§impl From<AuthorizationError> for Response
impl From<AuthorizationError> for Response
Source§fn from(err: AuthorizationError) -> Response
fn from(err: AuthorizationError) -> Response
Converts to this type from the input type.
Source§impl From<InertiaRedirect<'_>> for Response
impl From<InertiaRedirect<'_>> for Response
Source§fn from(redirect: InertiaRedirect<'_>) -> Response
fn from(redirect: InertiaRedirect<'_>) -> Response
Converts to this type from the input type.
Source§impl From<ParamError> for Response
impl From<ParamError> for Response
Source§fn from(err: ParamError) -> Response
fn from(err: ParamError) -> Response
Converts to this type from the input type.
Source§impl From<RedirectRouteBuilder> for Response
Auto-convert RedirectRouteBuilder to Response
impl From<RedirectRouteBuilder> for Response
Auto-convert RedirectRouteBuilder to Response
Source§fn from(redirect: RedirectRouteBuilder) -> Response
fn from(redirect: RedirectRouteBuilder) -> Response
Converts to this type from the input type.