pub struct LogprobCandidate {
pub token: Option<String>,
pub token_id: Option<i32>,
pub log_probability: Option<f64>,
pub extra: ExtraFields,
}Fields§
§token: Option<String>§token_id: Option<i32>§log_probability: Option<f64>§extra: ExtraFieldsTrait Implementations§
Source§impl Clone for LogprobCandidate
impl Clone for LogprobCandidate
Source§fn clone(&self) -> LogprobCandidate
fn clone(&self) -> LogprobCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogprobCandidate
impl Debug for LogprobCandidate
Source§impl Default for LogprobCandidate
impl Default for LogprobCandidate
Source§fn default() -> LogprobCandidate
fn default() -> LogprobCandidate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogprobCandidate
impl<'de> Deserialize<'de> for LogprobCandidate
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
Source§impl PartialEq for LogprobCandidate
impl PartialEq for LogprobCandidate
Source§impl Serialize for LogprobCandidate
impl Serialize for LogprobCandidate
impl StructuralPartialEq for LogprobCandidate
Auto Trait Implementations§
impl Freeze for LogprobCandidate
impl RefUnwindSafe for LogprobCandidate
impl Send for LogprobCandidate
impl Sync for LogprobCandidate
impl Unpin for LogprobCandidate
impl UnsafeUnpin for LogprobCandidate
impl UnwindSafe for LogprobCandidate
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