GoodMemGoodMem
ReferenceSdkRustTypes

CreateApiKeyResponse

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

All types

Struct CreateApiKeyResponse

goodmem::models::CreateApiKeyResponse

Response returned when creating a new API key.

pub struct CreateApiKeyResponse {
    pub api_key_metadata: Option<Box<ApiKeyResponse>>,
    pub raw_api_key: Option<String>,
}

Referenced types: ApiKeyResponse.

Fields

api_key_metadata

pub api_key_metadata: Option<Box<ApiKeyResponse>>

Metadata for the created API key. Wire name: apiKeyMetadata.

raw_api_key

pub raw_api_key: Option<String>

The actual API key value. This is only returned once and cannot be retrieved again. 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 CreateApiKeyResponse
  • impl std::fmt::Debug for CreateApiKeyResponse

On this page