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