Struct aliri_tokens::AccessTokenRef[][src]

#[repr(transparent)]
pub struct AccessTokenRef(_);
Expand description

A reference to a borrowed AccessToken

Implementations

impl AccessTokenRef[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]

Converts a Box<AccessTokenRef> into a AccessToken without copying or allocating

pub const fn as_str(&self) -> &str[src]

Provides access to the underlying value as a string slice.

Trait Implementations

impl AsRef<AccessTokenRef> for AccessToken[src]

fn as_ref(&self) -> &AccessTokenRef[src]

Performs the conversion.

impl Borrow<AccessTokenRef> for AccessToken[src]

fn borrow(&self) -> &AccessTokenRef[src]

Immutably borrows from an owned value. Read more

impl Debug for AccessTokenRef[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de: 'a, 'a> Deserialize<'de> for &'a AccessTokenRef[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]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl From<&'_ AccessTokenRef> for AccessToken[src]

fn from(s: &AccessTokenRef) -> Self[src]

Performs the conversion.

impl<'a> From<&'a str> for &'a AccessTokenRef[src]

fn from(s: &'a str) -> &'a AccessTokenRef[src]

Performs the conversion.

impl Hash for AccessTokenRef[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl PartialEq<&'_ AccessTokenRef> for AccessToken[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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<AccessToken> for AccessTokenRef[src]

fn eq(&self, other: &AccessToken) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<AccessToken> for &AccessTokenRef[src]

fn eq(&self, other: &AccessToken) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<AccessTokenRef> for AccessTokenRef[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]

This method tests for !=.

impl PartialEq<AccessTokenRef> for AccessToken[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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<Box<AccessTokenRef, Global>> for &AccessTokenRef[src]

fn eq(&self, other: &Box<AccessTokenRef>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Serialize for AccessTokenRef[src]

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>[src]

Serialize this value into the given Serde serializer. Read more

impl ToOwned for AccessTokenRef[src]

type Owned = AccessToken

The resulting type after obtaining ownership.

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]

🔬 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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more