pub struct Outcome {
    pub success: bool,
    pub response: Option<Response>,
}
Expand description

The object returned by the middleware.

  • If Outcome.success is set to true the Request is passed to the controller.
  • If Outcome.success is set to false the controller is skipped and the Outcome.response is sent to the browser.

Fields

success: boolresponse: Option<Response>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.