pub struct CreateUserRequest {
pub email: String,
pub first_name: Option<String>,
pub id: Option<String>,
pub last_name: Option<String>,
pub name: LocalizedString,
pub password: Option<String>,
pub roles: Option<Map<String, Value>>,
}Expand description
CreateUserRequest
JSON schema
{
"type": "object",
"required": [
"email",
"name"
],
"properties": {
"email": {
"type": "string"
},
"first_name": {
"description": "Given name stored on the Kratos identity (`traits.name.first`) when creating the account.",
"type": [
"string",
"null"
]
},
"id": {
"description": "Optional ID parameter (admin-only, not documented in API docs)\nThis field is intentionally not included in OpenAPI documentation",
"type": [
"string",
"null"
]
},
"last_name": {
"description": "Family name stored on the Kratos identity (`traits.name.last`) when creating the account.",
"type": [
"string",
"null"
]
},
"name": {
"$ref": "#/components/schemas/LocalizedString"
},
"password": {
"description": "Optional password for Kratos identity (provisioning only; same permission as id).\nWhen set, the Kratos identity is created with this password so the user can log in immediately.",
"type": [
"string",
"null"
]
},
"roles": {
"description": "Org ID (string) to list of role names. Optional.",
"type": [
"object",
"null"
]
}
}
}Fields§
§email: String§first_name: Option<String>Given name stored on the Kratos identity (traits.name.first) when creating the account.
id: Option<String>Optional ID parameter (admin-only, not documented in API docs) This field is intentionally not included in OpenAPI documentation
last_name: Option<String>Family name stored on the Kratos identity (traits.name.last) when creating the account.
name: LocalizedString§password: Option<String>Optional password for Kratos identity (provisioning only; same permission as id). When set, the Kratos identity is created with this password so the user can log in immediately.
roles: Option<Map<String, Value>>Org ID (string) to list of role names. Optional.
Trait Implementations§
Source§impl Clone for CreateUserRequest
impl Clone for CreateUserRequest
Source§fn clone(&self) -> CreateUserRequest
fn clone(&self) -> CreateUserRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateUserRequest
impl Debug for CreateUserRequest
Source§impl<'de> Deserialize<'de> for CreateUserRequest
impl<'de> Deserialize<'de> for CreateUserRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateUserRequest
impl RefUnwindSafe for CreateUserRequest
impl Send for CreateUserRequest
impl Sync for CreateUserRequest
impl Unpin for CreateUserRequest
impl UnsafeUnpin for CreateUserRequest
impl UnwindSafe for CreateUserRequest
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