GoodMemGoodMem
ReferenceSdkRustTypes

CompleteUserEnrollmentResponse

Rust struct goodmem::models::CompleteUserEnrollmentResponse: declaration, fields or variants, and implementations.

All types

Struct CompleteUserEnrollmentResponse

goodmem::models::CompleteUserEnrollmentResponse

Initial API-key metadata, exact-retry classification, and one-time raw key material only for a fresh server-generated completion. Client-supplied keys are never echoed.

pub struct CompleteUserEnrollmentResponse {
    pub api_key: Box<ApiKeyResponse>,
    pub already_completed: bool,
    pub raw_api_key: Option<String>,
}

Referenced types: ApiKeyResponse.

Fields

api_key

pub api_key: Box<ApiKeyResponse>

OUTPUT_ONLY; metadata for the newly published initial API key. Wire name: apiKey.

already_completed

pub already_completed: bool

OUTPUT_ONLY; true when the exact completion tuple already committed. Wire name: alreadyCompleted.

raw_api_key

pub raw_api_key: Option<String>

OUTPUT_ONLY; one-time raw API key returned only by a fresh server-generated completion. Omitted for client-supplied completion and every replay. Wire name: rawApiKey.

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 CompleteUserEnrollmentResponse
  • impl std::fmt::Debug for CompleteUserEnrollmentResponse

On this page