pub struct LogProb {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
pub top_logprobs: Vec<TopLogProb>,
}Expand description
Represents log probability information for a token.
Fields§
§token: StringToken string.
logprob: f32Log probability of the token.
bytes: Option<Vec<u8>>Optional bytes representation of the token.
top_logprobs: Vec<TopLogProb>List of top log probabilities.
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
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