#[non_exhaustive]pub struct GenerateContentRequestBody {Show 24 fields
pub compaction: Option<CompactionConfig>,
pub max_tokens: i64,
pub messages: Vec<Message>,
pub model: String,
pub cache_control: Option<CacheControl>,
pub container: Option<ContainerParam>,
pub context_management: Option<ContextManagementConfig>,
pub diagnostics: Option<DiagnosticsParam>,
pub fallback_credit_token: Option<FallbackCreditTokenParam>,
pub fallbacks: Option<FallbacksParam>,
pub inference_geo: Option<String>,
pub mcp_servers: Option<Vec<McpServerUrlDefinition>>,
pub metadata: Option<Metadata>,
pub output_config: Option<OutputConfig>,
pub output_format: Option<JsonOutputFormat>,
pub service_tier: Option<ServiceTier>,
pub speed: Option<Speed>,
pub stop_sequences: Option<Vec<String>>,
pub stream: Option<bool>,
pub system: Option<SystemPrompt>,
pub thinking: Option<ThinkingConfig>,
pub tool_choice: Option<ToolChoice>,
pub tools: Option<Vec<ToolUnion>>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compaction: Option<CompactionConfig>§max_tokens: i64§messages: Vec<Message>§model: String§cache_control: Option<CacheControl>§container: Option<ContainerParam>§context_management: Option<ContextManagementConfig>§diagnostics: Option<DiagnosticsParam>§fallback_credit_token: Option<FallbackCreditTokenParam>§fallbacks: Option<FallbacksParam>§inference_geo: Option<String>§mcp_servers: Option<Vec<McpServerUrlDefinition>>§metadata: Option<Metadata>§output_config: Option<OutputConfig>§output_format: Option<JsonOutputFormat>§service_tier: Option<ServiceTier>§speed: Option<Speed>§stop_sequences: Option<Vec<String>>§stream: Option<bool>§system: Option<SystemPrompt>§thinking: Option<ThinkingConfig>§tool_choice: Option<ToolChoice>§tools: Option<Vec<ToolUnion>>§rest: RestImplementations§
Trait Implementations§
Source§impl Clone for GenerateContentRequestBody
impl Clone for GenerateContentRequestBody
Source§impl Debug for GenerateContentRequestBody
impl Debug for GenerateContentRequestBody
Source§impl DeclaredFields for GenerateContentRequestBody
impl DeclaredFields for GenerateContentRequestBody
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for GenerateContentRequestBody
impl<'de> Deserialize<'de> for GenerateContentRequestBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for GenerateContentRequestBody
Auto Trait Implementations§
impl Freeze for GenerateContentRequestBody
impl RefUnwindSafe for GenerateContentRequestBody
impl Send for GenerateContentRequestBody
impl Sync for GenerateContentRequestBody
impl Unpin for GenerateContentRequestBody
impl UnsafeUnpin for GenerateContentRequestBody
impl UnwindSafe for GenerateContentRequestBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more