pub struct GenerateContentResponseBodyBuilder(/* private fields */);Expand description
Builder for GenerateContentResponseBody.
Implementations§
Source§impl GenerateContentResponseBodyBuilder
impl GenerateContentResponseBodyBuilder
pub fn access_programs( self, value: impl Into<Option<ResponseAccessPrograms>>, ) -> Self
pub fn prompt_cache_diagnostics( self, value: impl Into<PromptCacheDiagnostics>, ) -> Self
pub fn background(self, value: impl Into<Option<bool>>) -> Self
pub fn completed_at(self, value: impl Into<Option<i64>>) -> Self
pub fn conversation( self, value: impl Into<Option<ResponseConversationParam>>, ) -> Self
pub fn max_output_tokens(self, value: impl Into<Option<i64>>) -> Self
pub fn max_tool_calls(self, value: impl Into<Option<i64>>) -> Self
pub fn moderation( self, value: impl Into<Option<ResponseModerationReport>>, ) -> Self
pub fn output_text(self, value: impl Into<Option<String>>) -> Self
pub fn previous_response_id(self, value: impl Into<Option<String>>) -> Self
pub fn prompt(self, value: impl Into<Option<ResponsePrompt>>) -> Self
pub fn prompt_cache_key(self, value: impl Into<Option<String>>) -> Self
pub fn prompt_cache_options( self, value: impl Into<ResponsePromptCacheOptions>, ) -> Self
pub fn prompt_cache_retention( self, value: impl Into<Option<PromptCacheRetention>>, ) -> Self
pub fn reasoning(self, value: impl Into<Option<ReasoningConfig>>) -> Self
pub fn safety_identifier(self, value: impl Into<Option<String>>) -> Self
pub fn service_tier(self, value: impl Into<Option<ServiceTier>>) -> Self
pub fn status(self, value: impl Into<ResponseStatus>) -> Self
pub fn text(self, value: impl Into<TextConfig>) -> Self
pub fn top_logprobs(self, value: impl Into<Option<i64>>) -> Self
pub fn truncation(self, value: impl Into<Option<GenerateTruncation>>) -> Self
pub fn usage(self, value: impl Into<Option<ResponseUsage>>) -> Self
pub fn user(self, value: impl Into<Option<String>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> GenerateContentResponseBody
pub fn build(self) -> GenerateContentResponseBody
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for GenerateContentResponseBodyBuilder
impl RefUnwindSafe for GenerateContentResponseBodyBuilder
impl Send for GenerateContentResponseBodyBuilder
impl Sync for GenerateContentResponseBodyBuilder
impl Unpin for GenerateContentResponseBodyBuilder
impl UnsafeUnpin for GenerateContentResponseBodyBuilder
impl UnwindSafe for GenerateContentResponseBodyBuilder
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