[−][src]Struct oauth2::PkceCodeChallengeMethod
Code Challenge Method used for PKCE protection
via the code_challenge_method
parameter.
Methods from Deref<Target = String>
pub fn as_str(&self) -> &str | 1.7.0 [src] |
Extracts a string slice containing the entire String
.
Examples
Basic usage:
let s = String::from("foo"); assert_eq!("foo", s.as_str());
pub fn capacity(&self) -> usize | 1.0.0 [src] |
Returns this String
's capacity, in bytes.
Examples
Basic usage:
let s = String::with_capacity(10); assert!(s.capacity() >= 10);
pub fn as_bytes(&self) -> &[u8] | 1.0.0 [src] |
Returns a byte slice of this String
's contents.
The inverse of this method is from_utf8
.
Examples
Basic usage:
let s = String::from("hello"); assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
pub fn len(&self) -> usize | 1.0.0 [src] |
Returns the length of this String
, in bytes.
Examples
Basic usage:
let a = String::from("foo"); assert_eq!(a.len(), 3);
pub fn is_empty(&self) -> bool | 1.0.0 [src] |
Returns true
if this String
has a length of zero.
Returns false
otherwise.
Examples
Basic usage:
let mut v = String::new(); assert!(v.is_empty()); v.push('a'); assert!(!v.is_empty());
Trait Implementations
impl NewType<String> for PkceCodeChallengeMethod
[src]
impl NewType<String> for PkceCodeChallengeMethod
impl Into<String> for PkceCodeChallengeMethod
[src]
impl Into<String> for PkceCodeChallengeMethod
impl PartialEq<PkceCodeChallengeMethod> for PkceCodeChallengeMethod
[src]
impl PartialEq<PkceCodeChallengeMethod> for PkceCodeChallengeMethod
fn eq(&self, other: &PkceCodeChallengeMethod) -> bool | [src] |
fn ne(&self, other: &PkceCodeChallengeMethod) -> bool | [src] |
impl Clone for PkceCodeChallengeMethod
[src]
impl Clone for PkceCodeChallengeMethod
fn clone(&self) -> PkceCodeChallengeMethod | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for PkceCodeChallengeMethod
[src]
impl Debug for PkceCodeChallengeMethod
impl Deref for PkceCodeChallengeMethod
[src]
impl Deref for PkceCodeChallengeMethod
impl Serialize for PkceCodeChallengeMethod
[src]
impl Serialize for PkceCodeChallengeMethod
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for PkceCodeChallengeMethod
[src]
impl<'de> Deserialize<'de> for PkceCodeChallengeMethod
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for PkceCodeChallengeMethod
impl Send for PkceCodeChallengeMethod
impl Sync for PkceCodeChallengeMethod
impl Sync for PkceCodeChallengeMethod
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self