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