#[non_exhaustive]pub struct CreateUserInputBuilder { /* private fields */ }
Expand description
A builder for CreateUserInput
.
Implementations§
source§impl CreateUserInputBuilder
impl CreateUserInputBuilder
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The identifier of the organization for which the user is created.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The identifier of the organization for which the user is created.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
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 set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The display name for the new user.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The display name for the new user.
sourcepub fn set_password(self, input: Option<String>) -> Self
pub fn set_password(self, input: Option<String>) -> Self
The password for the new user.
sourcepub fn build(self) -> Result<CreateUserInput, BuildError>
pub fn build(self) -> Result<CreateUserInput, BuildError>
Consumes the builder and constructs a CreateUserInput
.
Trait Implementations§
source§impl Clone for CreateUserInputBuilder
impl Clone for CreateUserInputBuilder
source§fn clone(&self) -> CreateUserInputBuilder
fn clone(&self) -> CreateUserInputBuilder
Returns a copy 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 CreateUserInputBuilder
impl Debug for CreateUserInputBuilder
source§impl Default for CreateUserInputBuilder
impl Default for CreateUserInputBuilder
source§fn default() -> CreateUserInputBuilder
fn default() -> CreateUserInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateUserInputBuilder> for CreateUserInputBuilder
impl PartialEq<CreateUserInputBuilder> for CreateUserInputBuilder
source§fn eq(&self, other: &CreateUserInputBuilder) -> bool
fn eq(&self, other: &CreateUserInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateUserInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateUserInputBuilder
impl Send for CreateUserInputBuilder
impl Sync for CreateUserInputBuilder
impl Unpin for CreateUserInputBuilder
impl UnwindSafe for CreateUserInputBuilder
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