Struct aliri_oauth2::scope::ScopeTokenRef
source · pub struct ScopeTokenRef(/* private fields */);
Expand description
A borrowed reference to an OAuth2 (or OIDC) ScopeToken
Implementations§
source§impl ScopeTokenRef
impl ScopeTokenRef
sourcepub fn from_str(raw: &str) -> Result<&Self, <ScopeToken as Validator>::Error>
pub fn from_str(raw: &str) -> Result<&Self, <ScopeToken as Validator>::Error>
Transparently reinterprets the string slice as a strongly-typed ScopeTokenRef if it conforms to ScopeToken
sourcepub const unsafe fn from_str_unchecked(raw: &str) -> &Self
pub const unsafe fn from_str_unchecked(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed ScopeTokenRef without validating
sourcepub fn from_static(raw: &'static str) -> &'static Self
pub fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed ScopeTokenRef if it conforms to ScopeToken
§Panics
This function will panic if the provided raw string is not valid.
sourcepub fn into_owned(self: Box<ScopeTokenRef>) -> ScopeToken
pub fn into_owned(self: Box<ScopeTokenRef>) -> ScopeToken
Converts a Box<ScopeTokenRef>
into a ScopeToken
without copying or allocating
Trait Implementations§
source§impl AsRef<ScopeTokenRef> for ScopeToken
impl AsRef<ScopeTokenRef> for ScopeToken
source§fn as_ref(&self) -> &ScopeTokenRef
fn as_ref(&self) -> &ScopeTokenRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for ScopeTokenRef
impl AsRef<str> for ScopeTokenRef
source§impl Borrow<ScopeTokenRef> for ScopeToken
impl Borrow<ScopeTokenRef> for ScopeToken
source§fn borrow(&self) -> &ScopeTokenRef
fn borrow(&self) -> &ScopeTokenRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for ScopeTokenRef
impl Borrow<str> for ScopeTokenRef
source§impl Debug for ScopeTokenRef
impl Debug for ScopeTokenRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a ScopeTokenRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a ScopeTokenRef
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<ScopeTokenRef>
impl<'de> Deserialize<'de> for Box<ScopeTokenRef>
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 ScopeTokenRef
impl Display for ScopeTokenRef
source§impl<'a, 'b: 'a> From<&'a Cow<'b, ScopeTokenRef>> for &'a ScopeTokenRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ScopeTokenRef>> for &'a ScopeTokenRef
source§fn from(r: &'a Cow<'b, ScopeTokenRef>) -> &'a ScopeTokenRef
fn from(r: &'a Cow<'b, ScopeTokenRef>) -> &'a ScopeTokenRef
Converts to this type from the input type.
source§impl From<&ScopeTokenRef> for Arc<ScopeTokenRef>
impl From<&ScopeTokenRef> for Arc<ScopeTokenRef>
source§fn from(r: &ScopeTokenRef) -> Self
fn from(r: &ScopeTokenRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ScopeTokenRef> for Cow<'a, ScopeTokenRef>
impl<'a> From<&'a ScopeTokenRef> for Cow<'a, ScopeTokenRef>
source§fn from(r: &'a ScopeTokenRef) -> Self
fn from(r: &'a ScopeTokenRef) -> Self
Converts to this type from the input type.
source§impl From<&ScopeTokenRef> for Rc<ScopeTokenRef>
impl From<&ScopeTokenRef> for Rc<ScopeTokenRef>
source§fn from(r: &ScopeTokenRef) -> Self
fn from(r: &ScopeTokenRef) -> Self
Converts to this type from the input type.
source§impl From<&ScopeTokenRef> for ScopeToken
impl From<&ScopeTokenRef> for ScopeToken
source§fn from(s: &ScopeTokenRef) -> Self
fn from(s: &ScopeTokenRef) -> Self
Converts to this type from the input type.
source§impl From<ScopeToken> for Box<ScopeTokenRef>
impl From<ScopeToken> for Box<ScopeTokenRef>
source§fn from(r: ScopeToken) -> Self
fn from(r: ScopeToken) -> Self
Converts to this type from the input type.
source§impl Hash for ScopeTokenRef
impl Hash for ScopeTokenRef
source§impl Ord for ScopeTokenRef
impl Ord for ScopeTokenRef
source§impl PartialEq<&ScopeTokenRef> for ScopeToken
impl PartialEq<&ScopeTokenRef> for ScopeToken
source§fn eq(&self, other: &&ScopeTokenRef) -> bool
fn eq(&self, other: &&ScopeTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ScopeToken> for &ScopeTokenRef
impl PartialEq<ScopeToken> for &ScopeTokenRef
source§fn eq(&self, other: &ScopeToken) -> bool
fn eq(&self, other: &ScopeToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ScopeToken> for ScopeTokenRef
impl PartialEq<ScopeToken> for ScopeTokenRef
source§fn eq(&self, other: &ScopeToken) -> bool
fn eq(&self, other: &ScopeToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ScopeTokenRef> for ScopeToken
impl PartialEq<ScopeTokenRef> for ScopeToken
source§fn eq(&self, other: &ScopeTokenRef) -> bool
fn eq(&self, other: &ScopeTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for ScopeTokenRef
impl PartialEq for ScopeTokenRef
source§fn eq(&self, other: &ScopeTokenRef) -> bool
fn eq(&self, other: &ScopeTokenRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScopeTokenRef
impl PartialOrd for ScopeTokenRef
source§fn partial_cmp(&self, other: &ScopeTokenRef) -> Option<Ordering>
fn partial_cmp(&self, other: &ScopeTokenRef) -> 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 moresource§impl Serialize for ScopeTokenRef
impl Serialize for ScopeTokenRef
source§impl ToOwned for ScopeTokenRef
impl ToOwned for ScopeTokenRef
§type Owned = ScopeToken
type Owned = ScopeToken
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more