UpdateEmbedderRequest
Rust struct goodmem::models::UpdateEmbedderRequest: declaration, fields or variants, and implementations.
Struct UpdateEmbedderRequest
goodmem::models::UpdateEmbedderRequest
Request body for updating an existing Embedder. Only fields that should be updated need to be included. supportedModalities is creation-time only and cannot be changed here.
pub struct UpdateEmbedderRequest {
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 dimensionality: Option<i32>,
pub distribution_type: Option<DistributionType>,
pub max_sequence_length: Option<i32>,
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>,
pub gemini_endpoint_config: Option<Box<GeminiEndpointConfig>>,
}Referenced types: DashScopeApiDialect, DistributionType, EndpointAuthentication, GeminiEndpointConfig.
Fields
display_name
pub display_name: Option<String>
User-facing name of the embedder
Wire name: displayName.
description
pub description: Option<String>
Description of the embedder
Wire name: description.
endpoint_url
pub endpoint_url: Option<String>
Replacement base HTTP(S) endpoint. Omit to preserve the stored value. Gemini endpoint URLs must not contain query parameters.
Wire name: endpointUrl.
api_path
pub api_path: Option<String>
Replacement provider-relative request path. Omit to preserve the stored value, except that changing the Gemini backend without apiPath selects that backend's default; send blank to restore the provider default. For Gemini, this is an API version: /v1beta for Developer and /v1 for Google Cloud.
Wire name: apiPath.
model_identifier
pub model_identifier: Option<String>
Model identifier
Wire name: modelIdentifier.
dimensionality
pub dimensionality: Option<i32>
Output vector dimensions
Wire name: dimensionality.
distribution_type
pub distribution_type: Option<DistributionType>
Type of embedding distribution (DENSE or SPARSE)
Wire name: distributionType.
max_sequence_length
pub max_sequence_length: Option<i32>
Maximum input sequence length
Wire name: maxSequenceLength.
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.
gemini_endpoint_config
pub gemini_endpoint_config: Option<Box<GeminiEndpointConfig>>
When present, atomically replaces the complete Gemini backend routing configuration. Valid only for a GEMINI embedder. Omit to preserve the stored configuration; the gRPC service validates the backend-specific projectId and location contract.
Wire name: geminiEndpointConfig.
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 UpdateEmbedderRequestimpl std::fmt::Debug for UpdateEmbedderRequest