ReferenceSdkRustTypes
CreateUserEnrollmentRequest
Rust struct goodmem::models::CreateUserEnrollmentRequest: declaration, fields or variants, and implementations.
Struct CreateUserEnrollmentRequest
goodmem::models::CreateUserEnrollmentRequest
Options for issuing a one-time enrollment credential to the user named by the request path.
pub struct CreateUserEnrollmentRequest {
pub enrollment_id: Option<String>,
pub rotate_existing: Option<bool>,
}Fields
enrollment_id
pub enrollment_id: Option<String>
Optional client-provided enrollment UUID; generated when omitted.
Wire name: enrollmentId.
rotate_existing
pub rotate_existing: Option<bool>
Whether an existing live enrollment may be revoked and atomically replaced.
Wire name: rotateExisting.
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 CreateUserEnrollmentRequestimpl std::fmt::Debug for CreateUserEnrollmentRequest