[][src]Struct em_client::models::Account

pub struct Account {
    pub name: String,
    pub acct_id: Uuid,
    pub created_at: i64,
    pub roles: Vec<AccessRoles>,
    pub custom_logo: Option<ByteArray>,
    pub status: UserAccountStatus,
}

Fields

name: String

Name of the account. Account names must be unique within an EM instance.

acct_id: Uuid

Account ID uniquely identifying this account.

created_at: i64

When this account was created.

roles: Vec<AccessRoles>

role of the current user in particular account

logo of the particular account. Max size 128Kb, .jpg, .png, .svg file formats only

status: UserAccountStatus

Implementations

impl Account[src]

pub fn new(
    name: String,
    acct_id: Uuid,
    created_at: i64,
    roles: Vec<AccessRoles>,
    status: UserAccountStatus
) -> Account
[src]

Trait Implementations

impl Clone for Account[src]

impl Debug for Account[src]

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

impl PartialEq<Account> for Account[src]

impl Serialize for Account[src]

impl StructuralPartialEq for Account[src]

Auto Trait Implementations

impl RefUnwindSafe for Account

impl Send for Account

impl Sync for Account

impl Unpin for Account

impl UnwindSafe for Account

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Typeable for T where
    T: Any