pub struct AuthorizationCallback { /* private fields */ }Expand description
The query parameters an authorization server redirected with.
Raw strings from a URL this crate did not construct. Parsed once, here, into the two shapes it can mean — a grant or a refusal — before anything acts on them.
Implementations§
Source§impl AuthorizationCallback
impl AuthorizationCallback
Sourcepub fn granted(code: impl AsRef<str>, state: impl AsRef<str>) -> Self
pub fn granted(code: impl AsRef<str>, state: impl AsRef<str>) -> Self
A successful response carrying code and state.
Sourcepub fn refused(error: impl AsRef<str>, state: impl AsRef<str>) -> Self
pub fn refused(error: impl AsRef<str>, state: impl AsRef<str>) -> Self
A refusal carrying error and state.
Sourcepub fn with_issuer(self, iss: Option<Arc<str>>) -> Self
pub fn with_issuer(self, iss: Option<Arc<str>>) -> Self
Add the iss the response carried, if any.
Trait Implementations§
Source§impl Clone for AuthorizationCallback
impl Clone for AuthorizationCallback
Source§impl Debug for AuthorizationCallback
impl Debug for AuthorizationCallback
Source§impl Default for AuthorizationCallback
impl Default for AuthorizationCallback
impl Eq for AuthorizationCallback
Source§impl PartialEq for AuthorizationCallback
impl PartialEq for AuthorizationCallback
impl StructuralPartialEq for AuthorizationCallback
Auto Trait Implementations§
impl Freeze for AuthorizationCallback
impl RefUnwindSafe for AuthorizationCallback
impl Send for AuthorizationCallback
impl Sync for AuthorizationCallback
impl Unpin for AuthorizationCallback
impl UnsafeUnpin for AuthorizationCallback
impl UnwindSafe for AuthorizationCallback
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