Struct aliri_tokens::IdTokenRef
source · pub struct IdTokenRef(/* private fields */);
Expand description
An OAuth2 ID token
Implementations§
source§impl IdTokenRef
impl IdTokenRef
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 IdTokenRef
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 IdTokenRef
sourcepub fn into_owned(self: Box<IdTokenRef>) -> IdToken
pub fn into_owned(self: Box<IdTokenRef>) -> IdToken
Converts a Box<IdTokenRef>
into a IdToken
without copying or allocating
Trait Implementations§
source§impl AsRef<IdTokenRef> for IdToken
impl AsRef<IdTokenRef> for IdToken
source§fn as_ref(&self) -> &IdTokenRef
fn as_ref(&self) -> &IdTokenRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for IdTokenRef
impl AsRef<str> for IdTokenRef
source§impl Borrow<IdTokenRef> for IdToken
impl Borrow<IdTokenRef> for IdToken
source§fn borrow(&self) -> &IdTokenRef
fn borrow(&self) -> &IdTokenRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for IdTokenRef
impl Borrow<str> for IdTokenRef
source§impl Debug for IdTokenRef
impl Debug for IdTokenRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a IdTokenRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a IdTokenRef
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<IdTokenRef>
impl<'de> Deserialize<'de> for Box<IdTokenRef>
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 IdTokenRef
impl Display for IdTokenRef
source§impl<'a, 'b: 'a> From<&'a Cow<'b, IdTokenRef>> for &'a IdTokenRef
impl<'a, 'b: 'a> From<&'a Cow<'b, IdTokenRef>> for &'a IdTokenRef
source§fn from(r: &'a Cow<'b, IdTokenRef>) -> &'a IdTokenRef
fn from(r: &'a Cow<'b, IdTokenRef>) -> &'a IdTokenRef
Converts to this type from the input type.
source§impl From<&IdTokenRef> for Arc<IdTokenRef>
impl From<&IdTokenRef> for Arc<IdTokenRef>
source§fn from(r: &IdTokenRef) -> Self
fn from(r: &IdTokenRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a IdTokenRef> for Cow<'a, IdTokenRef>
impl<'a> From<&'a IdTokenRef> for Cow<'a, IdTokenRef>
source§fn from(r: &'a IdTokenRef) -> Self
fn from(r: &'a IdTokenRef) -> Self
Converts to this type from the input type.
source§impl From<&IdTokenRef> for IdToken
impl From<&IdTokenRef> for IdToken
source§fn from(s: &IdTokenRef) -> Self
fn from(s: &IdTokenRef) -> Self
Converts to this type from the input type.
source§impl From<&IdTokenRef> for Rc<IdTokenRef>
impl From<&IdTokenRef> for Rc<IdTokenRef>
source§fn from(r: &IdTokenRef) -> Self
fn from(r: &IdTokenRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a str> for &'a IdTokenRef
impl<'a> From<&'a str> for &'a IdTokenRef
source§fn from(s: &'a str) -> &'a IdTokenRef
fn from(s: &'a str) -> &'a IdTokenRef
Converts to this type from the input type.
source§impl Hash for IdTokenRef
impl Hash for IdTokenRef
source§impl Ord for IdTokenRef
impl Ord for IdTokenRef
source§impl PartialEq<&IdTokenRef> for IdToken
impl PartialEq<&IdTokenRef> for IdToken
source§fn eq(&self, other: &&IdTokenRef) -> bool
fn eq(&self, other: &&IdTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<IdToken> for &IdTokenRef
impl PartialEq<IdToken> for &IdTokenRef
source§impl PartialEq<IdToken> for IdTokenRef
impl PartialEq<IdToken> for IdTokenRef
source§impl PartialEq<IdTokenRef> for IdToken
impl PartialEq<IdTokenRef> for IdToken
source§fn eq(&self, other: &IdTokenRef) -> bool
fn eq(&self, other: &IdTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for IdTokenRef
impl PartialEq for IdTokenRef
source§fn eq(&self, other: &IdTokenRef) -> bool
fn eq(&self, other: &IdTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IdTokenRef
impl PartialOrd for IdTokenRef
source§fn partial_cmp(&self, other: &IdTokenRef) -> Option<Ordering>
fn partial_cmp(&self, other: &IdTokenRef) -> 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