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 ==
.