pub struct ResponseOutputTextTopLogprob {
pub token: String,
pub bytes: Vec<u8>,
pub logprob: f64,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 output_text 的 top logprob。
Fields§
§token: Stringtoken 内容。
bytes: Vec<u8>UTF-8 bytes。
logprob: f64token 对应的 logprob。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for ResponseOutputTextTopLogprob
impl Clone for ResponseOutputTextTopLogprob
Source§fn clone(&self) -> ResponseOutputTextTopLogprob
fn clone(&self) -> ResponseOutputTextTopLogprob
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 ResponseOutputTextTopLogprob
impl Debug for ResponseOutputTextTopLogprob
Source§impl Default for ResponseOutputTextTopLogprob
impl Default for ResponseOutputTextTopLogprob
Source§fn default() -> ResponseOutputTextTopLogprob
fn default() -> ResponseOutputTextTopLogprob
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseOutputTextTopLogprob
impl<'de> Deserialize<'de> for ResponseOutputTextTopLogprob
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 ResponseOutputTextTopLogprob
impl PartialEq for ResponseOutputTextTopLogprob
Source§fn eq(&self, other: &ResponseOutputTextTopLogprob) -> bool
fn eq(&self, other: &ResponseOutputTextTopLogprob) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseOutputTextTopLogprob
Auto Trait Implementations§
impl Freeze for ResponseOutputTextTopLogprob
impl RefUnwindSafe for ResponseOutputTextTopLogprob
impl Send for ResponseOutputTextTopLogprob
impl Sync for ResponseOutputTextTopLogprob
impl Unpin for ResponseOutputTextTopLogprob
impl UnsafeUnpin for ResponseOutputTextTopLogprob
impl UnwindSafe for ResponseOutputTextTopLogprob
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