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