pub struct TopLogprobs {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
}
Fields§
§token: String
The token.
logprob: f32
The log probability of this token.
bytes: Option<Vec<u8>>
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be null
if there is no bytes representation for the token.
Trait Implementations§
Source§impl Clone for TopLogprobs
impl Clone for TopLogprobs
Source§fn clone(&self) -> TopLogprobs
fn clone(&self) -> TopLogprobs
Returns a copy 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 TopLogprobs
impl Debug for TopLogprobs
Source§impl<'de> Deserialize<'de> for TopLogprobs
impl<'de> Deserialize<'de> for TopLogprobs
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 TopLogprobs
impl PartialEq for TopLogprobs
Source§impl Serialize for TopLogprobs
impl Serialize for TopLogprobs
impl StructuralPartialEq for TopLogprobs
Auto Trait Implementations§
impl Freeze for TopLogprobs
impl RefUnwindSafe for TopLogprobs
impl Send for TopLogprobs
impl Sync for TopLogprobs
impl Unpin for TopLogprobs
impl UnwindSafe for TopLogprobs
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