Enum mas_oidc_client::types::scope::MatrixApiScopeToken
source · pub enum MatrixApiScopeToken {
Full,
Guest,
Custom(PrivString),
}
Expand description
Tokens to define the scope of an access to the Matrix Client-Server API.
Variants§
Full
*
Access the full Client-Server API.
Guest
guest
Access the Client-Server API as a guest.
Custom(PrivString)
Another scope token.
To access it’s value use this type’s Display
implementation.
Trait Implementations§
source§impl Clone for MatrixApiScopeToken
impl Clone for MatrixApiScopeToken
source§fn clone(&self) -> MatrixApiScopeToken
fn clone(&self) -> MatrixApiScopeToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MatrixApiScopeToken
impl Debug for MatrixApiScopeToken
source§impl Display for MatrixApiScopeToken
impl Display for MatrixApiScopeToken
source§impl FromStr for MatrixApiScopeToken
impl FromStr for MatrixApiScopeToken
source§impl Hash for MatrixApiScopeToken
impl Hash for MatrixApiScopeToken
source§impl Ord for MatrixApiScopeToken
impl Ord for MatrixApiScopeToken
source§fn cmp(&self, other: &MatrixApiScopeToken) -> Ordering
fn cmp(&self, other: &MatrixApiScopeToken) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MatrixApiScopeToken
impl PartialEq for MatrixApiScopeToken
source§fn eq(&self, other: &MatrixApiScopeToken) -> bool
fn eq(&self, other: &MatrixApiScopeToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MatrixApiScopeToken
impl PartialOrd for MatrixApiScopeToken
source§fn partial_cmp(&self, other: &MatrixApiScopeToken) -> Option<Ordering>
fn partial_cmp(&self, other: &MatrixApiScopeToken) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for MatrixApiScopeToken
impl StructuralPartialEq for MatrixApiScopeToken
Auto Trait Implementations§
impl Freeze for MatrixApiScopeToken
impl RefUnwindSafe for MatrixApiScopeToken
impl Send for MatrixApiScopeToken
impl Sync for MatrixApiScopeToken
impl Unpin for MatrixApiScopeToken
impl UnwindSafe for MatrixApiScopeToken
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.