pub enum PkceMethod {
S256,
Plain,
}Expand description
PKCE code challenge method.
Deliberately not #[non_exhaustive]: a new method from a future spec is a
semver event we want to make deliberately.
Variants§
S256
S256 — base64url(SHA256(code_verifier)). The only method OAuth 2.1
permits.
Plain
plain — the verifier is sent as the challenge. Forbidden by OAuth 2.1
§7.5.2; see the module docs.
Implementations§
Source§impl PkceMethod
impl PkceMethod
Trait Implementations§
Source§impl Clone for PkceMethod
impl Clone for PkceMethod
impl Copy for PkceMethod
Source§impl Debug for PkceMethod
impl Debug for PkceMethod
impl Eq for PkceMethod
Source§impl PartialEq for PkceMethod
impl PartialEq for PkceMethod
impl StructuralPartialEq for PkceMethod
Auto Trait Implementations§
impl Freeze for PkceMethod
impl RefUnwindSafe for PkceMethod
impl Send for PkceMethod
impl Sync for PkceMethod
impl Unpin for PkceMethod
impl UnsafeUnpin for PkceMethod
impl UnwindSafe for PkceMethod
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