pub struct LogProb {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
pub top_logprobs: Vec<TopLogprob>,
}
Fields§
§token: String
§logprob: f32
§bytes: Option<Vec<u8>>
§top_logprobs: Vec<TopLogprob>
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