Struct etwin_core::auth::UserAuthContext
source · pub struct UserAuthContext {
pub scope: AuthScope,
pub user: ShortUser,
pub is_administrator: bool,
}
Fields§
§scope: AuthScope
§user: ShortUser
§is_administrator: bool
Trait Implementations§
source§impl Clone for UserAuthContext
impl Clone for UserAuthContext
source§fn clone(&self) -> UserAuthContext
fn clone(&self) -> UserAuthContext
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 UserAuthContext
impl Debug for UserAuthContext
source§impl Hash for UserAuthContext
impl Hash for UserAuthContext
source§impl Ord for UserAuthContext
impl Ord for UserAuthContext
source§fn cmp(&self, other: &UserAuthContext) -> Ordering
fn cmp(&self, other: &UserAuthContext) -> 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<UserAuthContext> for UserAuthContext
impl PartialEq<UserAuthContext> for UserAuthContext
source§fn eq(&self, other: &UserAuthContext) -> bool
fn eq(&self, other: &UserAuthContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UserAuthContext> for UserAuthContext
impl PartialOrd<UserAuthContext> for UserAuthContext
source§fn partial_cmp(&self, other: &UserAuthContext) -> Option<Ordering>
fn partial_cmp(&self, other: &UserAuthContext) -> 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 more