pub struct PkceChallenge { /* private fields */ }Expand description
PKCE challenge pair containing verifier and challenge strings.
Custom Debug redacts the code_verifier — it is a secret that must
never leave the client. The code_challenge and method are safe to
display (they are sent to the authorization server in the URL).
Implementations§
Source§impl PkceChallenge
impl PkceChallenge
Sourcepub fn code_challenge(&self) -> &str
pub fn code_challenge(&self) -> &str
Return the code challenge (safe to share with the authorization server).
Sourcepub fn code_challenge_method(&self) -> &str
pub fn code_challenge_method(&self) -> &str
Return the challenge method (always "S256").
Trait Implementations§
Source§impl Clone for PkceChallenge
impl Clone for PkceChallenge
Source§fn clone(&self) -> PkceChallenge
fn clone(&self) -> PkceChallenge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Forget for PkceChallenge
impl Freeze for PkceChallenge
impl Move for PkceChallenge
impl RefUnwindSafe for PkceChallenge
impl Send for PkceChallengewhere
RawVecInner: Send,
impl Sync for PkceChallengewhere
RawVecInner: Sync,
impl Unpin for PkceChallenge
impl UnsafeUnpin for PkceChallenge
impl UnwindSafe for PkceChallengewhere
RawVecInner: UnwindSafe,
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