pub struct UserBuilder { /* private fields */ }Expand description
Builder for User.
Implementations§
Source§impl UserBuilder
impl UserBuilder
Sourcepub fn default_project_id<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
pub fn default_project_id<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
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 UserBuilder
pub fn domain_id<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
User domain ID.
Sourcepub fn enabled<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
pub fn enabled<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
If the user is enabled, this value is true. If the user is disabled, this value is false.
pub fn extra<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
Sourcepub fn federated<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
pub fn federated<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
List of federated objects associated with a user. Each object in the list contains the idp_id and protocols. protocols is a list of objects, each of which contains protocol_id and unique_id of the protocol and user respectively.
Sourcepub fn id<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
pub fn id<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
User ID.
Sourcepub fn name<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
pub fn name<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
User name.
Sourcepub fn options<VALUE>(&mut self, value: VALUE) -> &mut UserBuilderwhere
VALUE: Into<UserOptions>,
pub fn options<VALUE>(&mut self, value: VALUE) -> &mut UserBuilderwhere
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_expires_at<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
pub fn password_expires_at<VALUE>(&mut self, value: VALUE) -> &mut UserBuilder
The date and time when the password expires. The time zone is UTC.
Trait Implementations§
Source§impl Clone for UserBuilder
impl Clone for UserBuilder
Source§fn clone(&self) -> UserBuilder
fn clone(&self) -> UserBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for UserBuilder
impl Default for UserBuilder
Source§fn default() -> UserBuilder
fn default() -> UserBuilder
Auto Trait Implementations§
impl Freeze for UserBuilder
impl RefUnwindSafe for UserBuilder
impl Send for UserBuilder
impl Sync for UserBuilder
impl Unpin for UserBuilder
impl UnsafeUnpin for UserBuilder
impl UnwindSafe for UserBuilder
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