Struct oxide_auth::code_grant::authorization::ErrorUrl [−][src]
pub struct ErrorUrl { /* fields omitted */ }Expand description
Encapsulates a redirect to a valid redirect_uri with an error response. The implementation makes it possible to alter the contained error, for example to provide additional optional information. The error type should not be altered by the frontend but the specificalities of this should be enforced by the frontend instead.
Implementations
Construct a new error, already fixing the state parameter if it exists.
pub fn with_request(
request: &dyn Request,
redirect_uri: Url,
err_type: AuthorizationErrorType
) -> ErrorUrl
pub fn with_request(
request: &dyn Request,
redirect_uri: Url,
err_type: AuthorizationErrorType
) -> ErrorUrl
Construct a new error with a request to provide state and an error type
Get a handle to the description the client will receive.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErrorUrl
impl UnwindSafe for ErrorUrl
Blanket Implementations
Mutably borrows from an owned value. Read more