Struct etwin_core::user::SimpleUser
source · pub struct SimpleUser {
pub id: UserId,
pub created_at: Instant,
pub display_name: UserDisplayNameVersions,
pub is_administrator: bool,
}
Fields§
§id: UserId
§created_at: Instant
§display_name: UserDisplayNameVersions
§is_administrator: bool
Trait Implementations§
source§impl Clone for SimpleUser
impl Clone for SimpleUser
source§fn clone(&self) -> SimpleUser
fn clone(&self) -> SimpleUser
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 SimpleUser
impl Debug for SimpleUser
source§impl From<CompleteSimpleUser> for SimpleUser
impl From<CompleteSimpleUser> for SimpleUser
source§fn from(user: CompleteSimpleUser) -> Self
fn from(user: CompleteSimpleUser) -> Self
Converts to this type from the input type.
source§impl From<SimpleUser> for ShortUser
impl From<SimpleUser> for ShortUser
source§fn from(user: SimpleUser) -> Self
fn from(user: SimpleUser) -> Self
Converts to this type from the input type.
source§impl Hash for SimpleUser
impl Hash for SimpleUser
source§impl Ord for SimpleUser
impl Ord for SimpleUser
source§fn cmp(&self, other: &SimpleUser) -> Ordering
fn cmp(&self, other: &SimpleUser) -> 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<SimpleUser> for SimpleUser
impl PartialEq<SimpleUser> for SimpleUser
source§fn eq(&self, other: &SimpleUser) -> bool
fn eq(&self, other: &SimpleUser) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SimpleUser> for SimpleUser
impl PartialOrd<SimpleUser> for SimpleUser
source§fn partial_cmp(&self, other: &SimpleUser) -> Option<Ordering>
fn partial_cmp(&self, other: &SimpleUser) -> 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