pub struct GenerateContentRequest {
pub contents: Vec<Content>,
pub tools: Option<Vec<Tool>>,
pub safety_settings: Option<Vec<SafetySetting>>,
pub generation_config: Option<GenerateionConfig>,
}Expand description
when deserilization:
- google api support both camelCase and snake_case key, but we only support camel case.
- google api allow trailling comma, but not here
Fields§
§contents: Vec<Content>§tools: Option<Vec<Tool>>A piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
safety_settings: Option<Vec<SafetySetting>>§generation_config: Option<GenerateionConfig>Trait Implementations§
Source§impl Clone for GenerateContentRequest
impl Clone for GenerateContentRequest
Source§fn clone(&self) -> GenerateContentRequest
fn clone(&self) -> GenerateContentRequest
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 GenerateContentRequest
impl Debug for GenerateContentRequest
Source§impl Default for GenerateContentRequest
impl Default for GenerateContentRequest
Source§fn default() -> GenerateContentRequest
fn default() -> GenerateContentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerateContentRequest
impl<'de> Deserialize<'de> for GenerateContentRequest
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
Source§impl PartialEq for GenerateContentRequest
impl PartialEq for GenerateContentRequest
Source§impl Serialize for GenerateContentRequest
impl Serialize for GenerateContentRequest
impl StructuralPartialEq for GenerateContentRequest
Auto Trait Implementations§
impl Freeze for GenerateContentRequest
impl RefUnwindSafe for GenerateContentRequest
impl Send for GenerateContentRequest
impl Sync for GenerateContentRequest
impl Unpin for GenerateContentRequest
impl UnwindSafe for GenerateContentRequest
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