[][src]Struct firefly_iii::models::user::User

pub struct User {
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub email: String,
    pub blocked: Option<bool>,
    pub blocked_code: Option<BlockedCode>,
    pub role: Option<Role>,
}

Fields

created_at: Option<String>updated_at: Option<String>email: String

The new users email address.

blocked: Option<bool>

Boolean to indicate if the user is blocked.

blocked_code: Option<BlockedCode>

If you say the user must be blocked, this will be the reason code.

role: Option<Role>

Role for the new user. Can be empty or omitted.

Methods

impl User[src]

pub fn new(email: String) -> User[src]

Trait Implementations

impl Debug for User[src]

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

impl PartialEq<User> for User[src]

impl Serialize for User[src]

impl StructuralPartialEq for User[src]

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

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: 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.