#[non_exhaustive]pub struct DescribeUserOutput {Show 23 fields
pub user_id: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
pub display_name: Option<String>,
pub state: Option<EntityState>,
pub user_role: Option<UserRole>,
pub enabled_date: Option<DateTime>,
pub disabled_date: Option<DateTime>,
pub mailbox_provisioned_date: Option<DateTime>,
pub mailbox_deprovisioned_date: Option<DateTime>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub hidden_from_global_address_list: bool,
pub initials: Option<String>,
pub telephone: Option<String>,
pub street: Option<String>,
pub job_title: Option<String>,
pub city: Option<String>,
pub company: Option<String>,
pub zip_code: Option<String>,
pub department: Option<String>,
pub country: Option<String>,
pub office: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user_id: Option<String>
The identifier for the described user.
name: Option<String>
The name for the user.
email: Option<String>
The email of the user.
display_name: Option<String>
The display name of the user.
state: Option<EntityState>
The state of a user: enabled (registered to WorkMail) or disabled (deregistered or never registered to WorkMail).
user_role: Option<UserRole>
In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, SYSTEM_USER, and REMOTE_USER.
enabled_date: Option<DateTime>
The date and time at which the user was enabled for WorkMailusage, in UNIX epoch time format.
disabled_date: Option<DateTime>
The date and time at which the user was disabled for WorkMail usage, in UNIX epoch time format.
mailbox_provisioned_date: Option<DateTime>
The date when the mailbox was created for the user.
mailbox_deprovisioned_date: Option<DateTime>
The date when the mailbox was removed for the user.
first_name: Option<String>
First name of the user.
last_name: Option<String>
Last name of the user.
If enabled, the user is hidden from the global address list.
initials: Option<String>
Initials of the user.
telephone: Option<String>
User's contact number.
street: Option<String>
Street where the user is located.
job_title: Option<String>
Job title of the user.
city: Option<String>
City where the user is located.
company: Option<String>
Company of the user.
zip_code: Option<String>
Zip code of the user.
department: Option<String>
Department of the user.
country: Option<String>
Country where the user is located.
office: Option<String>
Office where the user is located.
Implementations§
source§impl DescribeUserOutput
impl DescribeUserOutput
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The display name of the user.
sourcepub fn state(&self) -> Option<&EntityState>
pub fn state(&self) -> Option<&EntityState>
The state of a user: enabled (registered to WorkMail) or disabled (deregistered or never registered to WorkMail).
sourcepub fn user_role(&self) -> Option<&UserRole>
pub fn user_role(&self) -> Option<&UserRole>
In certain cases, other entities are modeled as users. If interoperability is enabled, resources are imported into WorkMail as users. Because different WorkMail organizations rely on different directory types, administrators can distinguish between an unregistered user (account is disabled and has a user role) and the directory administrators. The values are USER, RESOURCE, SYSTEM_USER, and REMOTE_USER.
sourcepub fn enabled_date(&self) -> Option<&DateTime>
pub fn enabled_date(&self) -> Option<&DateTime>
The date and time at which the user was enabled for WorkMailusage, in UNIX epoch time format.
sourcepub fn disabled_date(&self) -> Option<&DateTime>
pub fn disabled_date(&self) -> Option<&DateTime>
The date and time at which the user was disabled for WorkMail usage, in UNIX epoch time format.
sourcepub fn mailbox_provisioned_date(&self) -> Option<&DateTime>
pub fn mailbox_provisioned_date(&self) -> Option<&DateTime>
The date when the mailbox was created for the user.
sourcepub fn mailbox_deprovisioned_date(&self) -> Option<&DateTime>
pub fn mailbox_deprovisioned_date(&self) -> Option<&DateTime>
The date when the mailbox was removed for the user.
sourcepub fn first_name(&self) -> Option<&str>
pub fn first_name(&self) -> Option<&str>
First name of the user.
If enabled, the user is hidden from the global address list.
sourcepub fn department(&self) -> Option<&str>
pub fn department(&self) -> Option<&str>
Department of the user.
source§impl DescribeUserOutput
impl DescribeUserOutput
sourcepub fn builder() -> DescribeUserOutputBuilder
pub fn builder() -> DescribeUserOutputBuilder
Creates a new builder-style object to manufacture DescribeUserOutput
.
Trait Implementations§
source§impl Clone for DescribeUserOutput
impl Clone for DescribeUserOutput
source§fn clone(&self) -> DescribeUserOutput
fn clone(&self) -> DescribeUserOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeUserOutput
impl Debug for DescribeUserOutput
source§impl PartialEq for DescribeUserOutput
impl PartialEq for DescribeUserOutput
source§fn eq(&self, other: &DescribeUserOutput) -> bool
fn eq(&self, other: &DescribeUserOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DescribeUserOutput
impl RequestId for DescribeUserOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for DescribeUserOutput
Auto Trait Implementations§
impl Freeze for DescribeUserOutput
impl RefUnwindSafe for DescribeUserOutput
impl Send for DescribeUserOutput
impl Sync for DescribeUserOutput
impl Unpin for DescribeUserOutput
impl UnwindSafe for DescribeUserOutput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more