pub struct AuthorizationError { /* private fields */ }
Expand description
Represents parameters of an error in an Authorization Error Response.
Implementations§
Source§impl AuthorizationError
impl AuthorizationError
Sourcepub fn set_type(&mut self, new_type: AuthorizationErrorType)
pub fn set_type(&mut self, new_type: AuthorizationErrorType)
Set the error type
Sourcepub fn kind(&mut self) -> AuthorizationErrorType
pub fn kind(&mut self) -> AuthorizationErrorType
Get the formal kind of error.
This can not currently be changed as to uphold the inner invariants for RFC compliance.
Sourcepub fn explain<D: Into<Cow<'static, str>>>(&mut self, description: D)
pub fn explain<D: Into<Cow<'static, str>>>(&mut self, description: D)
Provide a short text explanation for the error.
Sourcepub fn explain_uri(&mut self, uri: Url)
pub fn explain_uri(&mut self, uri: Url)
A uri identifying a resource explaining the error in detail.
Sourcepub fn iter(&self) -> <Self as IntoIterator>::IntoIter
pub fn iter(&self) -> <Self as IntoIterator>::IntoIter
Iterate over the key value pairs that describe this error.
These pairs must be added to the detailed description of an error. To this end the pairs
appear as part of a form urlencoded query component in the Location
header of a server
response.
Trait Implementations§
Source§impl Clone for AuthorizationError
impl Clone for AuthorizationError
Source§fn clone(&self) -> AuthorizationError
fn clone(&self) -> AuthorizationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthorizationError
impl Debug for AuthorizationError
Source§impl Default for AuthorizationError
impl Default for AuthorizationError
Source§impl IntoIterator for &AuthorizationError
impl IntoIterator for &AuthorizationError
Source§impl IntoIterator for AuthorizationError
The error as key-value pairs.
impl IntoIterator for AuthorizationError
The error as key-value pairs.
Auto Trait Implementations§
impl Freeze for AuthorizationError
impl RefUnwindSafe for AuthorizationError
impl Send for AuthorizationError
impl Sync for AuthorizationError
impl Unpin for AuthorizationError
impl UnwindSafe for AuthorizationError
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