pub struct GenerateContentResponseBodyBuilder(/* private fields */);Expand description
Builder for GenerateContentResponseBody.
Implementations§
Source§impl GenerateContentResponseBodyBuilder
impl GenerateContentResponseBodyBuilder
pub fn error(self, value: impl Into<GenerateContentError>) -> Self
pub fn candidates(self, value: impl Into<Vec<Candidate>>) -> Self
pub fn prompt_feedback(self, value: impl Into<PromptFeedback>) -> Self
pub fn usage_metadata(self, value: impl Into<UsageMetadata>) -> Self
pub fn model_version(self, value: impl Into<String>) -> Self
pub fn response_id(self, value: impl Into<String>) -> Self
pub fn model_status(self, value: impl Into<ModelStatus>) -> 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