Struct rincon_client::user::types::User
[−]
[src]
pub struct User<E> where
E: UserExtra, { /* fields omitted */ }
This struct contains the properties of a user.
The type parameter E
specifies the type of the extra data about the
user. If users are created without any extra data one can use the
provided Empty
type.
Methods
impl<E> User<E> where
E: UserExtra,
[src]
E: UserExtra,
pub fn name(&self) -> &str
[src]
Returns the name of the user.
pub fn is_active(&self) -> bool
[src]
Returns whether the user is active or not.
pub fn extra(&self) -> &E
[src]
Returns the extra data assigned to this user.
Trait Implementations
impl<E: Debug> Debug for User<E> where
E: UserExtra,
[src]
E: UserExtra,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Clone> Clone for User<E> where
E: UserExtra,
[src]
E: UserExtra,
fn clone(&self) -> User<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E> From<User<E>> for UserUpdate<E> where
E: UserExtra + Clone,
[src]
E: UserExtra + Clone,