pub struct TopCandidatesBuilder(/* private fields */);Expand description
Builder for TopCandidates.
Implementations§
Source§impl TopCandidatesBuilder
impl TopCandidatesBuilder
pub fn candidates(self, value: impl Into<Vec<LogprobCandidate>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> TopCandidates
pub fn build(self) -> TopCandidates
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for TopCandidatesBuilder
impl RefUnwindSafe for TopCandidatesBuilder
impl Send for TopCandidatesBuilder
impl Sync for TopCandidatesBuilder
impl Unpin for TopCandidatesBuilder
impl UnsafeUnpin for TopCandidatesBuilder
impl UnwindSafe for TopCandidatesBuilder
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