CreateUserRequest
Rust struct goodmem::models::CreateUserRequest: declaration, fields or variants, and implementations.
Struct CreateUserRequest
goodmem::models::CreateUserRequest
Creates a human user without creating a credential, role assignment, grant, or external authentication mapping.
pub struct CreateUserRequest {
pub user_id: Option<String>,
pub email: String,
pub username: Option<String>,
pub display_name: Option<String>,
pub labels: Option<BTreeMap<String, String>>,
}Fields
user_id
pub user_id: Option<String>
Optional client-provided user UUID; generated by the server when omitted.
Wire name: userId.
email
pub email: String
Unique, nonempty email address.
Wire name: email.
username
pub username: Option<String>
Optional unique username.
Wire name: username.
display_name
pub display_name: Option<String>
Optional human-facing display name.
Wire name: displayName.
labels
pub labels: Option<BTreeMap<String, String>>
Optional labels for organization and filtering. At most 20 entries; keys and values contain at most 255 characters; keys use [a-z0-9._-].
Wire name: labels.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for CreateUserRequestimpl std::fmt::Debug for CreateUserRequest