pub struct TopLogprob {
pub token: String,
pub logprob: f32,
pub bytes: Option<Vec<u8>>,
}
Expand description
List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested top_logprobs returned.
Fields§
§token: String
§logprob: f32
§bytes: Option<Vec<u8>>
Trait Implementations§
Source§impl Clone for TopLogprob
impl Clone for TopLogprob
Source§fn clone(&self) -> TopLogprob
fn clone(&self) -> TopLogprob
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 TopLogprob
impl Debug for TopLogprob
Source§impl<'de> Deserialize<'de> for TopLogprob
impl<'de> Deserialize<'de> for TopLogprob
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 TopLogprob
impl RefUnwindSafe for TopLogprob
impl Send for TopLogprob
impl Sync for TopLogprob
impl Unpin for TopLogprob
impl UnwindSafe for TopLogprob
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