Type alias to retrieve
Flash messages from a request.
FlashMessage holds the parsed contents of the flash cookie. As long as
there is a flash cookie present (set by the
FlashMessage request guard will succeed.
Returns a tuple of
(kind, message), consuming
kind of this message.
message contents of this message.
Retrieves a flash message from a flash cookie. If there is no flash cookie,
or if the flash cookie is malformed, an empty
Err is returned.
The suggested use is through an
Option and the
FlashMessage type alias
The associated error to be returned if derivation fails.
Derives an instance of
Self from the incoming request metadata. Read more