pub struct LogProbsContentInfo {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
}Fields§
§token: StringThe token.
logprob: f32The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value -9999.0 is used to signify that the token is very unlikely.
bytes: Option<Vec<u8>>A list of integers representing the UTF-8 bytes representation of the token.
Trait Implementations§
Source§impl Clone for LogProbsContentInfo
impl Clone for LogProbsContentInfo
Source§fn clone(&self) -> LogProbsContentInfo
fn clone(&self) -> LogProbsContentInfo
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 LogProbsContentInfo
impl Debug for LogProbsContentInfo
Source§impl<'de> Deserialize<'de> for LogProbsContentInfo
impl<'de> Deserialize<'de> for LogProbsContentInfo
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 LogProbsContentInfo
impl PartialEq for LogProbsContentInfo
Source§impl Serialize for LogProbsContentInfo
impl Serialize for LogProbsContentInfo
impl StructuralPartialEq for LogProbsContentInfo
Auto Trait Implementations§
impl Freeze for LogProbsContentInfo
impl RefUnwindSafe for LogProbsContentInfo
impl Send for LogProbsContentInfo
impl Sync for LogProbsContentInfo
impl Unpin for LogProbsContentInfo
impl UnwindSafe for LogProbsContentInfo
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