GoodMemGoodMem
ReferenceSdkRustTypes

SystemInitResponse

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

All types

Struct SystemInitResponse

goodmem::models::SystemInitResponse

Response from the system initialization endpoint.

pub struct SystemInitResponse {
    pub already_initialized: bool,
    pub message: String,
    pub root_api_key: Option<String>,
    pub user_id: Option<String>,
}

Fields

already_initialized

pub already_initialized: bool

Indicates whether the system was already initialized before this request. Wire name: alreadyInitialized.

message

pub message: String

A human-readable message about the initialization status. Wire name: message.

root_api_key

pub root_api_key: Option<String>

The API key for the root user. Only present if system was just initialized (not previously initialized). Wire name: rootApiKey.

user_id

pub user_id: Option<String>

The user ID of the root user. Only present if system was just initialized (not previously initialized). Wire name: userId.

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

On this page