#[non_exhaustive]pub struct GenerateContentRequestBody {Show 34 fields
pub access_programs: Option<AccessPrograms>,
pub multi_agent: Option<Option<MultiAgentConfig>>,
pub background: Option<Option<bool>>,
pub context_management: Option<Option<Vec<ContextManagement>>>,
pub conversation: Option<Option<ConversationParam>>,
pub include: Option<Option<Vec<ResponseIncludable>>>,
pub input: Option<Input>,
pub instructions: Option<Option<String>>,
pub max_output_tokens: Option<Option<i64>>,
pub max_tool_calls: Option<Option<i64>>,
pub metadata: Option<Option<BTreeMap<String, String>>>,
pub model: Option<String>,
pub moderation: Option<Option<ResponseModeration>>,
pub parallel_tool_calls: Option<Option<bool>>,
pub previous_response_id: Option<Option<String>>,
pub prompt: Option<Option<ResponsePrompt>>,
pub prompt_cache_key: Option<Option<String>>,
pub prompt_cache_options: Option<PromptCacheOptions>,
pub prompt_cache_retention: Option<Option<PromptCacheRetention>>,
pub reasoning: Option<Option<ReasoningConfig>>,
pub safety_identifier: Option<Option<String>>,
pub service_tier: Option<Option<ServiceTier>>,
pub store: Option<Option<bool>>,
pub stream: Option<Option<bool>>,
pub stream_options: Option<Option<StreamOptions>>,
pub temperature: Option<Option<Number>>,
pub text: Option<TextConfig>,
pub tool_choice: Option<ToolChoice>,
pub tools: Option<Vec<Tool>>,
pub top_logprobs: Option<Option<i64>>,
pub top_p: Option<Option<Number>>,
pub truncation: Option<Option<GenerateTruncation>>,
pub user: Option<Option<String>>,
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.access_programs: Option<AccessPrograms>§multi_agent: Option<Option<MultiAgentConfig>>§background: Option<Option<bool>>§context_management: Option<Option<Vec<ContextManagement>>>§conversation: Option<Option<ConversationParam>>§include: Option<Option<Vec<ResponseIncludable>>>§input: Option<Input>§instructions: Option<Option<String>>§max_output_tokens: Option<Option<i64>>§max_tool_calls: Option<Option<i64>>§metadata: Option<Option<BTreeMap<String, String>>>§model: Option<String>§moderation: Option<Option<ResponseModeration>>§parallel_tool_calls: Option<Option<bool>>§previous_response_id: Option<Option<String>>§prompt: Option<Option<ResponsePrompt>>§prompt_cache_key: Option<Option<String>>§prompt_cache_options: Option<PromptCacheOptions>§prompt_cache_retention: Option<Option<PromptCacheRetention>>§reasoning: Option<Option<ReasoningConfig>>§safety_identifier: Option<Option<String>>§service_tier: Option<Option<ServiceTier>>§store: Option<Option<bool>>§stream: Option<Option<bool>>§stream_options: Option<Option<StreamOptions>>§temperature: Option<Option<Number>>§text: Option<TextConfig>§tool_choice: Option<ToolChoice>§tools: Option<Vec<Tool>>§top_logprobs: Option<Option<i64>>§top_p: Option<Option<Number>>§truncation: Option<Option<GenerateTruncation>>§user: Option<Option<String>>§rest: RestImplementations§
Source§impl GenerateContentRequestBody
impl GenerateContentRequestBody
Sourcepub fn builder() -> GenerateContentRequestBodyBuilder
pub fn builder() -> GenerateContentRequestBodyBuilder
Start a builder by supplying the required fields in declaration order.
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 Eq for GenerateContentRequestBody
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