pub struct ErrorUrl { /* private fields */ }
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§
Source§impl ErrorUrl
impl ErrorUrl
Sourcepub fn new(url: Url, state: Option<&str>, error: AuthorizationError) -> ErrorUrl
pub fn new(url: Url, state: Option<&str>, error: AuthorizationError) -> ErrorUrl
Construct a new error, already fixing the state parameter if it exists.
Sourcepub 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
Sourcepub fn description(&mut self) -> &mut AuthorizationError
pub fn description(&mut self) -> &mut AuthorizationError
Get a handle to the description the client will receive.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorUrl
impl RefUnwindSafe for ErrorUrl
impl Send for ErrorUrl
impl Sync for ErrorUrl
impl Unpin for ErrorUrl
impl UnwindSafe for ErrorUrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more