pub struct LogProb {
pub token: String,
pub logprob: f64,
pub bytes: Vec<u64>,
pub top_logprobs: Vec<TopLogProb>,
}
Expand description
The log probability of a token.
Fields§
§token: String
§logprob: f64
§bytes: Vec<u64>
§top_logprobs: Vec<TopLogProb>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogProb
impl<'de> Deserialize<'de> for LogProb
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
impl StructuralPartialEq for LogProb
Auto Trait Implementations§
impl Freeze for LogProb
impl RefUnwindSafe for LogProb
impl Send for LogProb
impl Sync for LogProb
impl Unpin for LogProb
impl UnwindSafe for LogProb
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