UserResponse
Rust struct goodmem::models::UserResponse: declaration, fields or variants, and implementations.
Struct UserResponse
goodmem::models::UserResponse
A durable human user profile and its lifecycle metadata.
pub struct UserResponse {
pub user_id: String,
pub email: String,
pub display_name: Option<String>,
pub username: Option<String>,
pub labels: BTreeMap<String, String>,
pub enrollment_summary: Option<Box<UserEnrollmentSummary>>,
pub deleted_at: Option<i64>,
pub deleted_by_id: Option<String>,
pub created_at: i64,
pub updated_at: i64,
pub created_by_id: String,
pub updated_by_id: String,
}Referenced types: UserEnrollmentSummary.
Fields
user_id
pub user_id: String
OUTPUT_ONLY; immutable user UUID.
Wire name: userId.
email
pub email: String
OUTPUT_ONLY; unique email address.
Wire name: email.
display_name
pub display_name: Option<String>
OUTPUT_ONLY; optional human-facing display name.
Wire name: displayName.
username
pub username: Option<String>
OUTPUT_ONLY; optional unique username.
Wire name: username.
labels
pub labels: BTreeMap<String, String>
OUTPUT_ONLY; mutable labels attached to the user principal. At most 20 entries; keys and values contain at most 255 characters; keys use [a-z0-9._-].
Wire name: labels.
enrollment_summary
pub enrollment_summary: Option<Box<UserEnrollmentSummary>>
OUTPUT_ONLY; enrollment posture when requested and independently authorized.
Wire name: enrollmentSummary.
deleted_at
pub deleted_at: Option<i64>
OUTPUT_ONLY; permanent deletion time in milliseconds, absent while active.
Wire name: deletedAt.
deleted_by_id
pub deleted_by_id: Option<String>
OUTPUT_ONLY; exact deleting actor UUID, absent while active.
Wire name: deletedById.
created_at
pub created_at: i64
OUTPUT_ONLY; creation time in milliseconds since the epoch.
Wire name: createdAt.
updated_at
pub updated_at: i64
OUTPUT_ONLY; most recent mutation time in milliseconds since the epoch.
Wire name: updatedAt.
created_by_id
pub created_by_id: String
OUTPUT_ONLY; exact creating actor UUID.
Wire name: createdById.
updated_by_id
pub updated_by_id: String
OUTPUT_ONLY; exact actor UUID for the most recent mutation.
Wire name: updatedById.
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 UserResponseimpl std::fmt::Debug for UserResponse