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