[][src]Struct aliri_oauth2::Scope

#[repr(transparent)]pub struct Scope(_);

An OAuth2 scope

Implementations

impl Scope[src]

pub fn new<T: Into<String>>(raw: T) -> Self[src]

Strongly types the given String.

pub fn into_inner(self) -> String[src]

Unwraps the underlying value.

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

Provides access to the underlying value as a string slice.

Methods from Deref<Target = ScopeRef>

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

Provides access to the underlying value as a string slice.

Trait Implementations

impl AsRef<ScopeRef> for Scope[src]

impl Borrow<ScopeRef> for Scope[src]

impl Clone for Scope[src]

impl Debug for Scope[src]

impl Deref for Scope[src]

type Target = ScopeRef

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for Scope[src]

impl<'a> Display for Scope[src]

impl Eq for Scope[src]

impl<'_> From<&'_ ScopeRef> for Scope[src]

impl<'_> From<&'_ str> for Scope[src]

impl From<Scope> for String[src]

impl From<String> for Scope[src]

impl Hash for Scope[src]

impl PartialEq<Scope> for Scope[src]

impl PartialEq<Scope> for ScopeRef[src]

impl PartialEq<ScopeRef> for Scope[src]

impl Serialize for Scope[src]

impl StructuralEq for Scope[src]

impl StructuralPartialEq for Scope[src]

Auto Trait Implementations

impl RefUnwindSafe for Scope

impl Send for Scope

impl Sync for Scope

impl Unpin for Scope

impl UnwindSafe for Scope

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SectionExt for T where
    T: Display + Send + Sync + 'static, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]