[][src]Struct etebase::User

pub struct User { /* fields omitted */ }

A user object

Implementations

impl User[src]

pub fn new(username: &str, email: &str) -> Self[src]

Return a new user instance

Arguments:

  • username - the user's username
  • email - the user's email

pub fn set_username(&mut self, username: &str) -> &mut Self[src]

Set the username

Arguments:

  • username - the user's username

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

Get the username

pub fn set_email(&mut self, email: &str) -> &mut Self[src]

Set the email address

Arguments:

  • email - the user's email address

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

Get the email address

Trait Implementations

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

impl Serialize for User[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,