#[non_exhaustive]pub struct GenerateContentRequestBody {
pub contents: Vec<Content>,
pub tools: Option<Vec<Tool>>,
pub tool_config: Option<ToolConfig>,
pub safety_settings: Option<Vec<SafetySetting>>,
pub labels: Option<BTreeMap<String, String>>,
pub system_instruction: Option<Content>,
pub generation_config: Option<GenerationConfig>,
pub cached_content: Option<String>,
pub service_tier: Option<ServiceTier>,
pub store: Option<bool>,
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.contents: Vec<Content>§tools: Option<Vec<Tool>>§tool_config: Option<ToolConfig>§safety_settings: Option<Vec<SafetySetting>>§labels: Option<BTreeMap<String, String>>§system_instruction: Option<Content>§generation_config: Option<GenerationConfig>§cached_content: Option<String>§service_tier: Option<ServiceTier>§store: Option<bool>§rest: RestImplementations§
Source§impl GenerateContentRequestBody
impl GenerateContentRequestBody
Sourcepub fn builder(contents: Vec<Content>) -> GenerateContentRequestBodyBuilder
pub fn builder(contents: Vec<Content>) -> 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 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