pub struct GenerateContent {
pub contents: Vec<Content>,
pub tools: Vec<Tools>,
pub tool_config: Option<ToolConfig>,
pub safety_settings: Vec<SafetySettings>,
pub system_instruction: Option<SystemInstructionContent>,
pub generation_config: Option<GenerationConfig>,
}
Expand description
Request to generate content from the model
Fields§
§contents: Vec<Content>
§tools: Vec<Tools>
§tool_config: Option<ToolConfig>
§safety_settings: Vec<SafetySettings>
§system_instruction: Option<SystemInstructionContent>
§generation_config: Option<GenerationConfig>
Trait Implementations§
Source§impl Clone for GenerateContent
impl Clone for GenerateContent
Source§fn clone(&self) -> GenerateContent
fn clone(&self) -> GenerateContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GenerateContent
impl Debug for GenerateContent
Source§impl Default for GenerateContent
impl Default for GenerateContent
Source§fn default() -> GenerateContent
fn default() -> GenerateContent
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GenerateContent
impl RefUnwindSafe for GenerateContent
impl Send for GenerateContent
impl Sync for GenerateContent
impl Unpin for GenerateContent
impl UnwindSafe for GenerateContent
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