pub struct LogprobsContent {
pub token: String,
pub logprob: f64,
pub bytes: Option<Vec<u8>>,
pub top_logprobs: Vec<TopLogprobs>,
}Expand description
Logprobs for content tokens.
Fields§
§token: String§logprob: f64§bytes: Option<Vec<u8>>§top_logprobs: Vec<TopLogprobs>Trait Implementations§
Source§impl Clone for LogprobsContent
impl Clone for LogprobsContent
Source§fn clone(&self) -> LogprobsContent
fn clone(&self) -> LogprobsContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogprobsContent
impl Debug for LogprobsContent
Source§impl<'de> Deserialize<'de> for LogprobsContent
impl<'de> Deserialize<'de> for LogprobsContent
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 LogprobsContent
impl PartialEq for LogprobsContent
Source§fn eq(&self, other: &LogprobsContent) -> bool
fn eq(&self, other: &LogprobsContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LogprobsContent
impl Serialize for LogprobsContent
impl StructuralPartialEq for LogprobsContent
Auto Trait Implementations§
impl Freeze for LogprobsContent
impl RefUnwindSafe for LogprobsContent
impl Send for LogprobsContent
impl Sync for LogprobsContent
impl Unpin for LogprobsContent
impl UnsafeUnpin for LogprobsContent
impl UnwindSafe for LogprobsContent
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