pub struct LogprobsResultCandidate {
pub log_probability: Option<f64>,
pub token: Option<String>,
pub token_id: Option<i64>,
}Fields§
§log_probability: Option<f64>§token: Option<String>§token_id: Option<i64>Implementations§
Source§impl LogprobsResultCandidate
impl LogprobsResultCandidate
Sourcepub fn log_probability(self, value: impl Into<f64>) -> Self
pub fn log_probability(self, value: impl Into<f64>) -> Self
Sets the log_probability field of this struct.
Trait Implementations§
Source§impl Clone for LogprobsResultCandidate
impl Clone for LogprobsResultCandidate
Source§fn clone(&self) -> LogprobsResultCandidate
fn clone(&self) -> LogprobsResultCandidate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogprobsResultCandidate
impl Debug for LogprobsResultCandidate
Source§impl Default for LogprobsResultCandidate
impl Default for LogprobsResultCandidate
Source§fn default() -> LogprobsResultCandidate
fn default() -> LogprobsResultCandidate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogprobsResultCandidate
impl<'de> Deserialize<'de> for LogprobsResultCandidate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LogprobsResultCandidate
impl RefUnwindSafe for LogprobsResultCandidate
impl Send for LogprobsResultCandidate
impl Sync for LogprobsResultCandidate
impl Unpin for LogprobsResultCandidate
impl UnwindSafe for LogprobsResultCandidate
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