#[non_exhaustive]pub struct UserAttributes {Show 13 fields
pub created_at: Option<DateTime<Utc>>,
pub disabled: Option<bool>,
pub email: Option<String>,
pub handle: Option<String>,
pub icon: Option<String>,
pub mfa_enabled: Option<bool>,
pub modified_at: Option<DateTime<Utc>>,
pub name: Option<Option<String>>,
pub service_account: Option<bool>,
pub status: Option<String>,
pub title: Option<Option<String>>,
pub verified: Option<bool>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes of user object returned by the API.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.created_at: Option<DateTime<Utc>>
Creation time of the user.
disabled: Option<bool>
Whether the user is disabled.
email: Option<String>
Email of the user.
handle: Option<String>
Handle of the user.
icon: Option<String>
URL of the user’s icon.
mfa_enabled: Option<bool>
If user has MFA enabled.
modified_at: Option<DateTime<Utc>>
Time that the user was last modified.
name: Option<Option<String>>
Name of the user.
service_account: Option<bool>
Whether the user is a service account.
status: Option<String>
Status of the user.
title: Option<Option<String>>
Title of the user.
verified: Option<bool>
Whether the user is verified.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl UserAttributes
impl UserAttributes
pub fn new() -> UserAttributes
pub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn disabled(self, value: bool) -> Self
pub fn email(self, value: String) -> Self
pub fn handle(self, value: String) -> Self
pub fn icon(self, value: String) -> Self
pub fn mfa_enabled(self, value: bool) -> Self
pub fn modified_at(self, value: DateTime<Utc>) -> Self
pub fn name(self, value: Option<String>) -> Self
pub fn service_account(self, value: bool) -> Self
pub fn status(self, value: String) -> Self
pub fn title(self, value: Option<String>) -> Self
pub fn verified(self, value: bool) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for UserAttributes
impl Clone for UserAttributes
Source§fn clone(&self) -> UserAttributes
fn clone(&self) -> UserAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserAttributes
impl Debug for UserAttributes
Source§impl Default for UserAttributes
impl Default for UserAttributes
Source§impl<'de> Deserialize<'de> for UserAttributes
impl<'de> Deserialize<'de> for UserAttributes
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
Source§impl PartialEq for UserAttributes
impl PartialEq for UserAttributes
Source§impl Serialize for UserAttributes
impl Serialize for UserAttributes
impl StructuralPartialEq for UserAttributes
Auto Trait Implementations§
impl Freeze for UserAttributes
impl RefUnwindSafe for UserAttributes
impl Send for UserAttributes
impl Sync for UserAttributes
impl Unpin for UserAttributes
impl UnwindSafe for UserAttributes
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