Struct aws_sdk_workmail::operation::create_user::CreateUserInput
source · #[non_exhaustive]pub struct CreateUserInput {
pub organization_id: Option<String>,
pub name: Option<String>,
pub display_name: Option<String>,
pub password: Option<String>,
pub role: Option<UserRole>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub hidden_from_global_address_list: Option<bool>,
}
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.organization_id: Option<String>
The identifier of the organization for which the user is created.
name: Option<String>
The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.
display_name: Option<String>
The display name for the new user.
password: Option<String>
The password for the new user.
role: Option<UserRole>
The role of the new user.
You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.
first_name: Option<String>
The first name of the new user.
last_name: Option<String>
The last name of the new user.
If this parameter is enabled, the user will be hidden from the address book.
Implementations§
source§impl CreateUserInput
impl CreateUserInput
sourcepub fn organization_id(&self) -> Option<&str>
pub fn organization_id(&self) -> Option<&str>
The identifier of the organization for which the user is created.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name for the new user. WorkMail directory user names have a maximum length of 64. All others have a maximum length of 20.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The display name for the new user.
sourcepub fn role(&self) -> Option<&UserRole>
pub fn role(&self) -> Option<&UserRole>
The role of the new user.
You cannot pass SYSTEM_USER or RESOURCE role in a single request. When a user role is not selected, the default role of USER is selected.
sourcepub fn first_name(&self) -> Option<&str>
pub fn first_name(&self) -> Option<&str>
The first name of the new user.
If this parameter is enabled, the user will be hidden from the address book.
source§impl CreateUserInput
impl CreateUserInput
sourcepub fn builder() -> CreateUserInputBuilder
pub fn builder() -> CreateUserInputBuilder
Creates a new builder-style object to manufacture CreateUserInput
.
Trait Implementations§
source§impl Clone for CreateUserInput
impl Clone for CreateUserInput
source§fn clone(&self) -> CreateUserInput
fn clone(&self) -> CreateUserInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateUserInput
impl Debug for CreateUserInput
source§impl PartialEq for CreateUserInput
impl PartialEq for CreateUserInput
source§fn eq(&self, other: &CreateUserInput) -> bool
fn eq(&self, other: &CreateUserInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateUserInput
Auto Trait Implementations§
impl Freeze for CreateUserInput
impl RefUnwindSafe for CreateUserInput
impl Send for CreateUserInput
impl Sync for CreateUserInput
impl Unpin for CreateUserInput
impl UnwindSafe for CreateUserInput
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