pub enum Method {
Plain,
Sha256,
}
Expand description
Represents PKCE code challenge methods.
Variants§
Plain
The plain method, which is discouraged and only used as the last resort.
Sha256
The SHA-256 method, which is recommended and marked as the default.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Method
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Method
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Method
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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