pub struct CandidateBuilder(/* private fields */);Expand description
Builder for Candidate.
Implementations§
Source§impl CandidateBuilder
impl CandidateBuilder
pub fn content(self, value: impl Into<Content>) -> Self
pub fn finish_reason(self, value: impl Into<FinishReason>) -> Self
pub fn continuation_token(self, value: impl Into<String>) -> Self
pub fn safety_ratings(self, value: impl Into<Vec<SafetyRating>>) -> Self
pub fn citation_metadata(self, value: impl Into<CitationMetadata>) -> Self
pub fn token_count(self, value: impl Into<i64>) -> Self
pub fn grounding_attributions( self, value: impl Into<Vec<GroundingAttribution>>, ) -> Self
pub fn grounding_metadata(self, value: impl Into<GroundingMetadata>) -> Self
pub fn avg_logprobs(self, value: impl Into<f64>) -> Self
pub fn logprobs_result(self, value: impl Into<LogprobsResult>) -> Self
pub fn url_context_metadata(self, value: impl Into<UrlContextMetadata>) -> Self
pub fn index(self, value: impl Into<i64>) -> Self
pub fn finish_message(self, value: impl Into<String>) -> Self
pub fn rest(self, value: Rest) -> Self
Auto Trait Implementations§
impl Freeze for CandidateBuilder
impl RefUnwindSafe for CandidateBuilder
impl Send for CandidateBuilder
impl Sync for CandidateBuilder
impl Unpin for CandidateBuilder
impl UnsafeUnpin for CandidateBuilder
impl UnwindSafe for CandidateBuilder
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