pub struct UserCreateBuilder { /* private fields */ }Expand description
Builder for UserCreate.
Implementations§
Source§impl UserCreateBuilder
impl UserCreateBuilder
Sourcepub fn default_project_id<VALUE>(
&mut self,
value: VALUE,
) -> &mut UserCreateBuilder
pub fn default_project_id<VALUE>( &mut self, value: VALUE, ) -> &mut UserCreateBuilder
The ID of the default project for the user. A user’s default project must not be a domain. Setting this attribute does not grant any actual authorization on the project, and is merely provided for convenience. Therefore, the referenced project does not need to exist within the user domain. If the user does not have authorization to their default project, the default project is ignored at token creation. Additionally, if your default project is not valid, a token is issued without an explicit scope of authorization.
Sourcepub fn domain_id<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
pub fn domain_id<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
User domain ID.
Sourcepub fn enabled<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
pub fn enabled<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
If the user is enabled, this value is true. If the user is disabled, this value is false.
Sourcepub fn extra<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
pub fn extra<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
Additional user properties.
Sourcepub fn name<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
pub fn name<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
The user name. Must be unique within the owning domain.
Sourcepub fn options<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilderwhere
VALUE: Into<UserOptions>,
pub fn options<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilderwhere
VALUE: Into<UserOptions>,
The resource options for the user. Available resource options are ignore_change_password_upon_first_use, ignore_password_expiry, ignore_lockout_failure_attempts, lock_password, multi_factor_auth_enabled, and multi_factor_auth_rules ignore_user_inactivity.
Sourcepub fn password<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
pub fn password<VALUE>(&mut self, value: VALUE) -> &mut UserCreateBuilder
The password for the user.
Sourcepub fn build(&self) -> Result<UserCreate, BuilderError>
pub fn build(&self) -> Result<UserCreate, BuilderError>
Trait Implementations§
Source§impl Clone for UserCreateBuilder
impl Clone for UserCreateBuilder
Source§fn clone(&self) -> UserCreateBuilder
fn clone(&self) -> UserCreateBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for UserCreateBuilder
impl Default for UserCreateBuilder
Source§fn default() -> UserCreateBuilder
fn default() -> UserCreateBuilder
Auto Trait Implementations§
impl Freeze for UserCreateBuilder
impl RefUnwindSafe for UserCreateBuilder
impl Send for UserCreateBuilder
impl Sync for UserCreateBuilder
impl Unpin for UserCreateBuilder
impl UnsafeUnpin for UserCreateBuilder
impl UnwindSafe for UserCreateBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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