GoodMemGoodMem
ReferenceSdkRustTypes

UpdateDecisionModelRequest

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

All types

Struct UpdateDecisionModelRequest

goodmem::models::UpdateDecisionModelRequest

Changes only the supplied fields. Omitted fields keep their current values. A supplied configuration replaces all existing provider settings.

pub struct UpdateDecisionModelRequest {
    pub display_name: Option<String>,
    pub description: Option<String>,
    pub endpoint_url: Option<String>,
    pub api_path: Option<String>,
    pub model_identifier: Option<String>,
    pub credentials: Option<Box<EndpointAuthentication>>,
    pub configuration: Option<BTreeMap<String, serde_json::Value>>,
    pub version: Option<String>,
    pub monitoring_endpoint: Option<String>,
    pub replace_labels: Option<BTreeMap<String, String>>,
    pub merge_labels: Option<BTreeMap<String, String>>,
}

Referenced types: EndpointAuthentication.

Fields

display_name

pub display_name: Option<String>

Name shown in the console and CLI. Wire name: displayName.

description

pub description: Option<String>

Description of the model. Send an empty string to clear it, or omit it to keep the current value. Wire name: description.

endpoint_url

pub endpoint_url: Option<String>

Base URL of the provider, starting with http:// or <https://.> Do not include a query string, fragment, or username and password. Wire name: endpointUrl.

api_path

pub api_path: Option<String>

Path appended to endpointUrl when sending a request. Omit it to keep the current path. An empty string resets Jev and Laya to /v1/systemone; Clef requires the path for your account and model. Wire name: apiPath.

model_identifier

pub model_identifier: Option<String>

Model identifier accepted by the provider. Wire name: modelIdentifier.

credentials

pub credentials: Option<Box<EndpointAuthentication>>

Replacement API key for the provider, supplied in credentials.apiKey.inlineSecret with kind set to CREDENTIAL_KIND_API_KEY. Omit credentials to keep the current key. Wire name: credentials.

configuration

pub configuration: Option<BTreeMap<String, serde_json::Value>>

Replacement provider settings. Supported keys are image_preview (Jev only), timeout_millis, and max_response_bytes. Send {} to reset all settings to defaults, or omit configuration to keep the current settings. Wire name: configuration.

version

pub version: Option<String>

Version label. Send an empty string to clear it, or omit it to keep the current value. Wire name: version.

monitoring_endpoint

pub monitoring_endpoint: Option<String>

URL for the provider health or metrics endpoint. Must start with http:// or <https://.> Send an empty string to clear it, or omit it to keep the current value. Wire name: monitoringEndpoint.

replace_labels

pub replace_labels: Option<BTreeMap<String, String>>

Replace all labels with this map. Send {} to remove all labels. Do not combine with mergeLabels. Wire name: replaceLabels.

merge_labels

pub merge_labels: Option<BTreeMap<String, String>>

Add labels and replace the values of matching keys. Other labels are unchanged. Do not combine with replaceLabels. Wire name: mergeLabels.

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

On this page