Struct aliri_tokens::AccessTokenRef [−][src]
#[repr(transparent)]pub struct AccessTokenRef(_);
Expand description
A reference to a borrowed AccessToken
Implementations
impl AccessTokenRef
[src]
impl AccessTokenRef
[src]pub fn from_str(raw: &str) -> &Self
[src]
pub fn from_str(raw: &str) -> &Self
[src]Transparently reinterprets the string slice as a strongly-typed AccessTokenRef
pub fn into_owned(self: Box<AccessTokenRef>) -> AccessToken
[src]
pub fn into_owned(self: Box<AccessTokenRef>) -> AccessToken
[src]Converts a Box<AccessTokenRef>
into a AccessToken
without copying or allocating
Trait Implementations
impl AsRef<AccessTokenRef> for AccessToken
[src]
impl AsRef<AccessTokenRef> for AccessToken
[src]fn as_ref(&self) -> &AccessTokenRef
[src]
fn as_ref(&self) -> &AccessTokenRef
[src]Performs the conversion.
impl Borrow<AccessTokenRef> for AccessToken
[src]
impl Borrow<AccessTokenRef> for AccessToken
[src]fn borrow(&self) -> &AccessTokenRef
[src]
fn borrow(&self) -> &AccessTokenRef
[src]Immutably borrows from an owned value. Read more
impl Debug for AccessTokenRef
[src]
impl Debug for AccessTokenRef
[src]impl<'de: 'a, 'a> Deserialize<'de> for &'a AccessTokenRef
[src]
impl<'de: 'a, 'a> Deserialize<'de> for &'a AccessTokenRef
[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for AccessTokenRef
[src]
impl Display for AccessTokenRef
[src]impl From<&'_ AccessTokenRef> for AccessToken
[src]
impl From<&'_ AccessTokenRef> for AccessToken
[src]fn from(s: &AccessTokenRef) -> Self
[src]
fn from(s: &AccessTokenRef) -> Self
[src]Performs the conversion.
impl<'a> From<&'a str> for &'a AccessTokenRef
[src]
impl<'a> From<&'a str> for &'a AccessTokenRef
[src]fn from(s: &'a str) -> &'a AccessTokenRef
[src]
fn from(s: &'a str) -> &'a AccessTokenRef
[src]Performs the conversion.
impl Hash for AccessTokenRef
[src]
impl Hash for AccessTokenRef
[src]impl PartialEq<&'_ AccessTokenRef> for AccessToken
[src]
impl PartialEq<&'_ AccessTokenRef> for AccessToken
[src]impl PartialEq<AccessToken> for AccessTokenRef
[src]
impl PartialEq<AccessToken> for AccessTokenRef
[src]impl PartialEq<AccessToken> for &AccessTokenRef
[src]
impl PartialEq<AccessToken> for &AccessTokenRef
[src]impl PartialEq<AccessTokenRef> for AccessTokenRef
[src]
impl PartialEq<AccessTokenRef> for AccessTokenRef
[src]fn eq(&self, other: &AccessTokenRef) -> bool
[src]
fn eq(&self, other: &AccessTokenRef) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &AccessTokenRef) -> bool
[src]
fn ne(&self, other: &AccessTokenRef) -> bool
[src]This method tests for !=
.
impl PartialEq<AccessTokenRef> for AccessToken
[src]
impl PartialEq<AccessTokenRef> for AccessToken
[src]impl PartialEq<Box<AccessTokenRef, Global>> for &AccessTokenRef
[src]
impl PartialEq<Box<AccessTokenRef, Global>> for &AccessTokenRef
[src]impl Serialize for AccessTokenRef
[src]
impl Serialize for AccessTokenRef
[src]impl ToOwned for AccessTokenRef
[src]
impl ToOwned for AccessTokenRef
[src]type Owned = AccessToken
type Owned = AccessToken
The resulting type after obtaining ownership.
fn to_owned(&self) -> Self::Owned
[src]
fn to_owned(&self) -> Self::Owned
[src]Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for AccessTokenRef
[src]
impl StructuralEq for AccessTokenRef
[src]
impl StructuralPartialEq for AccessTokenRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccessTokenRef
impl Send for AccessTokenRef
impl !Sized for AccessTokenRef
impl Sync for AccessTokenRef
impl Unpin for AccessTokenRef
impl UnwindSafe for AccessTokenRef
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.