GeminiEndpointConfig
Rust struct goodmem::models::GeminiEndpointConfig: declaration, fields or variants, and implementations.
Struct GeminiEndpointConfig
goodmem::models::GeminiEndpointConfig
Gemini backend routing. DEVELOPER does not use projectId or location; GOOGLE_CLOUD requires projectId and defaults an omitted location to global.
pub struct GeminiEndpointConfig {
pub backend: GeminiApiBackend,
pub project_id: Option<String>,
pub location: Option<String>,
}Referenced types: GeminiApiBackend.
Fields
backend
pub backend: GeminiApiBackend
Google API surface. UNSPECIFIED is invalid when this configuration is supplied on a write.
Wire name: backend.
project_id
pub project_id: Option<String>
Google Cloud resource project. Required for GOOGLE_CLOUD and unused for DEVELOPER; this is distinct from the ADC quota project.
Wire name: projectId.
location
pub location: Option<String>
Google Cloud location. Valid only for GOOGLE_CLOUD; omission defaults to global.
Wire name: location.
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 GeminiEndpointConfigimpl std::fmt::Debug for GeminiEndpointConfig