GoodMemGoodMem
ReferenceSdkRustTypes

UpdateRerankerRequest

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

All types

Struct UpdateRerankerRequest

goodmem::models::UpdateRerankerRequest

Request body for updating an existing Reranker. Only fields that should be updated need to be included. supportedModalities replaces the stored set only when the array contains at least one value; empty or omitted leaves it unchanged and does not count as an update by itself.

pub struct UpdateRerankerRequest {
    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 supported_modalities: Option<Vec<Modality>>,
    pub credentials: Option<Box<EndpointAuthentication>>,
    pub replace_labels: Option<BTreeMap<String, String>>,
    pub merge_labels: Option<BTreeMap<String, String>>,
    pub version: Option<String>,
    pub monitoring_endpoint: Option<String>,
    pub dashscope_api_dialect: Option<DashScopeApiDialect>,
}

Referenced types: DashScopeApiDialect, EndpointAuthentication, Modality.

Fields

display_name

pub display_name: Option<String>

User-facing name of the reranker Wire name: displayName.

description

pub description: Option<String>

Description of the reranker Wire name: description.

endpoint_url

pub endpoint_url: Option<String>

API endpoint URL Wire name: endpointUrl.

api_path

pub api_path: Option<String>

API path for reranking request Wire name: apiPath.

model_identifier

pub model_identifier: Option<String>

Model identifier Wire name: modelIdentifier.

supported_modalities

pub supported_modalities: Option<Vec<Modality>>

Update supported modalities (if array contains >=1 elements, replaces stored set; if empty or omitted, no change and does not count as an update by itself) Wire name: supportedModalities.

credentials

pub credentials: Option<Box<EndpointAuthentication>>

Replace stored credentials. Omit this field to preserve the current credentials; a present empty payload is invalid and never clears them. Wire name: credentials.

replace_labels

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

Replace all existing labels with these (mutually exclusive with mergeLabels) Wire name: replaceLabels.

merge_labels

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

Merge these labels with existing ones (mutually exclusive with replaceLabels) Wire name: mergeLabels.

version

pub version: Option<String>

Version information Wire name: version.

monitoring_endpoint

pub monitoring_endpoint: Option<String>

Monitoring endpoint URL Wire name: monitoringEndpoint.

dashscope_api_dialect

pub dashscope_api_dialect: Option<DashScopeApiDialect>

Update the DashScope request and response API dialect. Valid only for the DASHSCOPE provider. Omit to preserve the stored dialect. Changing apiPath to a recognized canonical DashScope dialect infers its matching dialect; a custom path preserves an existing dialect, while a legacy null dialect is inferred. Wire name: dashscopeApiDialect.

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

On this page