Struct aliri_tokens::IdTokenRef[][src]

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

A reference to a borrowed IdToken

Implementations

impl IdTokenRef[src]

pub fn from_str(raw: &str) -> &Self[src]

Transparently reinterprets the string slice as a strongly-typed IdTokenRef

pub fn into_owned(self: Box<IdTokenRef>) -> IdToken[src]

Converts a Box<IdTokenRef> into a IdToken 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<IdTokenRef> for IdToken[src]

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

Performs the conversion.

impl Borrow<IdTokenRef> for IdToken[src]

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

Immutably borrows from an owned value. Read more

impl Debug for IdTokenRef[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 IdTokenRef[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 IdTokenRef[src]

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

Formats the value using the given formatter. Read more

impl From<&'_ IdTokenRef> for IdToken[src]

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

Performs the conversion.

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

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

Performs the conversion.

impl Hash for IdTokenRef[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<&'_ IdTokenRef> for IdToken[src]

fn eq(&self, other: &&IdTokenRef) -> 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<IdTokenRef, Global>> for &IdTokenRef[src]

fn eq(&self, other: &Box<IdTokenRef>) -> 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<IdToken> for IdTokenRef[src]

fn eq(&self, other: &IdToken) -> 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<IdToken> for &IdTokenRef[src]

fn eq(&self, other: &IdToken) -> 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<IdTokenRef> for IdTokenRef[src]

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

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

fn ne(&self, other: &IdTokenRef) -> bool[src]

This method tests for !=.

impl PartialEq<IdTokenRef> for IdToken[src]

fn eq(&self, other: &IdTokenRef) -> 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 IdTokenRef[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 IdTokenRef[src]

type Owned = IdToken

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 IdTokenRef[src]

impl StructuralEq for IdTokenRef[src]

impl StructuralPartialEq for IdTokenRef[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