pub struct User {Show 16 fields
pub id: u64,
pub login: Option<String>,
pub firstname: Option<String>,
pub lastname: Option<String>,
pub email: Option<String>,
pub web: Option<String>,
pub phone: Option<String>,
pub mobile: Option<String>,
pub fax: Option<String>,
pub note: Option<String>,
pub organization_id: Option<u64>,
pub active: Option<bool>,
pub verified: Option<bool>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub extra: Map<String, Value>,
}Expand description
A Zammad user (agent or customer).
Fields§
§id: u64Numeric user ID.
login: Option<String>Login (often the email).
firstname: Option<String>Given name.
lastname: Option<String>Family name.
email: Option<String>Primary email.
web: Option<String>Personal website URL.
phone: Option<String>Landline phone.
mobile: Option<String>Mobile phone.
fax: Option<String>Fax number.
note: Option<String>Free-form internal note.
organization_id: Option<u64>ID of the primary organization, if any.
active: Option<bool>Whether the account is active.
verified: Option<bool>Whether the email is verified.
created_at: Option<DateTime<Utc>>When the user was created.
updated_at: Option<DateTime<Utc>>When the user was last updated.
extra: Map<String, Value>Any attribute not modelled above (incl. custom fields).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more