Struct twitch_oauth2::types::CsrfTokenRef
source · pub struct CsrfTokenRef(/* private fields */);
Expand description
A Csrf Token
Implementations§
source§impl CsrfTokenRef
impl CsrfTokenRef
sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed CsrfTokenRef
sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed CsrfTokenRef
sourcepub fn into_owned(self: Box<CsrfTokenRef>) -> CsrfToken
pub fn into_owned(self: Box<CsrfTokenRef>) -> CsrfToken
Converts a Box<CsrfTokenRef>
into a CsrfToken
without copying or allocating
source§impl CsrfTokenRef
impl CsrfTokenRef
sourcepub fn secret(&self) -> &str
pub fn secret(&self) -> &str
Get the secret from this string.
This function is the same as CsrfToken::as_str
, but has another name for searchability, prefer to use this function.
Trait Implementations§
source§impl AsRef<CsrfTokenRef> for CsrfToken
impl AsRef<CsrfTokenRef> for CsrfToken
source§fn as_ref(&self) -> &CsrfTokenRef
fn as_ref(&self) -> &CsrfTokenRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for CsrfTokenRef
impl AsRef<str> for CsrfTokenRef
source§impl Borrow<CsrfTokenRef> for CsrfToken
impl Borrow<CsrfTokenRef> for CsrfToken
source§fn borrow(&self) -> &CsrfTokenRef
fn borrow(&self) -> &CsrfTokenRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for CsrfTokenRef
impl Borrow<str> for CsrfTokenRef
source§impl Debug for CsrfTokenRef
impl Debug for CsrfTokenRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a CsrfTokenRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a CsrfTokenRef
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
source§impl<'de> Deserialize<'de> for Box<CsrfTokenRef>
impl<'de> Deserialize<'de> for Box<CsrfTokenRef>
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
source§impl Display for CsrfTokenRef
impl Display for CsrfTokenRef
source§impl<'a, 'b: 'a> From<&'a Cow<'b, CsrfTokenRef>> for &'a CsrfTokenRef
impl<'a, 'b: 'a> From<&'a Cow<'b, CsrfTokenRef>> for &'a CsrfTokenRef
source§fn from(r: &'a Cow<'b, CsrfTokenRef>) -> &'a CsrfTokenRef
fn from(r: &'a Cow<'b, CsrfTokenRef>) -> &'a CsrfTokenRef
Converts to this type from the input type.
source§impl From<&CsrfTokenRef> for Arc<CsrfTokenRef>
impl From<&CsrfTokenRef> for Arc<CsrfTokenRef>
source§fn from(r: &CsrfTokenRef) -> Self
fn from(r: &CsrfTokenRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a CsrfTokenRef> for Cow<'a, CsrfTokenRef>
impl<'a> From<&'a CsrfTokenRef> for Cow<'a, CsrfTokenRef>
source§fn from(r: &'a CsrfTokenRef) -> Self
fn from(r: &'a CsrfTokenRef) -> Self
Converts to this type from the input type.
source§impl From<&CsrfTokenRef> for CsrfToken
impl From<&CsrfTokenRef> for CsrfToken
source§fn from(s: &CsrfTokenRef) -> Self
fn from(s: &CsrfTokenRef) -> Self
Converts to this type from the input type.
source§impl From<&CsrfTokenRef> for Rc<CsrfTokenRef>
impl From<&CsrfTokenRef> for Rc<CsrfTokenRef>
source§fn from(r: &CsrfTokenRef) -> Self
fn from(r: &CsrfTokenRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a str> for &'a CsrfTokenRef
impl<'a> From<&'a str> for &'a CsrfTokenRef
source§fn from(s: &'a str) -> &'a CsrfTokenRef
fn from(s: &'a str) -> &'a CsrfTokenRef
Converts to this type from the input type.
source§impl Hash for CsrfTokenRef
impl Hash for CsrfTokenRef
source§impl Ord for CsrfTokenRef
impl Ord for CsrfTokenRef
source§impl PartialEq<&CsrfTokenRef> for CsrfToken
impl PartialEq<&CsrfTokenRef> for CsrfToken
source§fn eq(&self, other: &&CsrfTokenRef) -> bool
fn eq(&self, other: &&CsrfTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CsrfToken> for &CsrfTokenRef
impl PartialEq<CsrfToken> for &CsrfTokenRef
source§impl PartialEq<CsrfToken> for CsrfTokenRef
impl PartialEq<CsrfToken> for CsrfTokenRef
source§impl PartialEq<CsrfTokenRef> for CsrfToken
impl PartialEq<CsrfTokenRef> for CsrfToken
source§fn eq(&self, other: &CsrfTokenRef) -> bool
fn eq(&self, other: &CsrfTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for CsrfTokenRef
impl PartialEq for CsrfTokenRef
source§fn eq(&self, other: &CsrfTokenRef) -> bool
fn eq(&self, other: &CsrfTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CsrfTokenRef
impl PartialOrd for CsrfTokenRef
source§fn partial_cmp(&self, other: &CsrfTokenRef) -> Option<Ordering>
fn partial_cmp(&self, other: &CsrfTokenRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more