pub struct UserUpdate {
pub default_project_id: Option<Option<String>>,
pub enabled: Option<bool>,
pub extra: Option<Value>,
pub name: Option<String>,
pub options: Option<UserOptions>,
pub password: Option<String>,
}Expand description
Update user data.
Fields§
§default_project_id: Option<Option<String>>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.
enabled: Option<bool>If the user is enabled, this value is true. If the user is disabled, this value is false.
extra: Option<Value>Additional user properties.
name: Option<String>The user name. Must be unique within the owning domain.
options: Option<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.
password: Option<String>The password for the user.
Trait Implementations§
Source§impl Clone for UserUpdate
impl Clone for UserUpdate
Source§fn clone(&self) -> UserUpdate
fn clone(&self) -> UserUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserUpdate
impl Debug for UserUpdate
Source§impl<'de> Deserialize<'de> for UserUpdate
impl<'de> Deserialize<'de> for UserUpdate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for UserUpdate
impl PartialEq for UserUpdate
Source§impl Serialize for UserUpdate
impl Serialize for UserUpdate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToSchema for UserUpdate
impl ToSchema for UserUpdate
Source§impl Validate for UserUpdate
impl Validate for UserUpdate
Source§impl<'v_a> ValidateArgs<'v_a> for UserUpdate
impl<'v_a> ValidateArgs<'v_a> for UserUpdate
type Args = ()
fn validate_with_args( &self, args: <UserUpdate as ValidateArgs<'v_a>>::Args, ) -> Result<(), ValidationErrors>
impl StructuralPartialEq for UserUpdate
Auto Trait Implementations§
impl Freeze for UserUpdate
impl RefUnwindSafe for UserUpdate
impl Send for UserUpdate
impl Sync for UserUpdate
impl Unpin for UserUpdate
impl UnsafeUnpin for UserUpdate
impl UnwindSafe for UserUpdate
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