pub struct GenerateContentRequestBodyBuilder(/* private fields */);Expand description
Builder for GenerateContentRequestBody.
Implementations§
Source§impl GenerateContentRequestBodyBuilder
impl GenerateContentRequestBodyBuilder
pub fn continuation_token(self, value: impl Into<String>) -> Self
pub fn tools(self, value: impl Into<Vec<Tool>>) -> Self
pub fn tool_config(self, value: impl Into<ToolConfig>) -> Self
pub fn safety_settings(self, value: impl Into<Vec<SafetySetting>>) -> Self
pub fn labels(self, value: impl Into<BTreeMap<String, String>>) -> Self
pub fn system_instruction(self, value: impl Into<Content>) -> Self
pub fn generation_config(self, value: impl Into<GenerationConfig>) -> Self
pub fn cached_content(self, value: impl Into<String>) -> Self
pub fn service_tier(self, value: impl Into<ServiceTier>) -> Self
pub fn store(self, value: impl Into<bool>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> GenerateContentRequestBody
pub fn build(self) -> GenerateContentRequestBody
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for GenerateContentRequestBodyBuilder
impl RefUnwindSafe for GenerateContentRequestBodyBuilder
impl Send for GenerateContentRequestBodyBuilder
impl Sync for GenerateContentRequestBodyBuilder
impl Unpin for GenerateContentRequestBodyBuilder
impl UnsafeUnpin for GenerateContentRequestBodyBuilder
impl UnwindSafe for GenerateContentRequestBodyBuilder
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