pub struct ChatLogProbsDeltaEvent {
pub choice_index: u32,
pub values: Vec<ChatCompletionTokenLogprob>,
}Expand description
表示 token logprobs 增量事件。
Fields§
§choice_index: u32候选索引。
values: Vec<ChatCompletionTokenLogprob>logprobs 明细。
Trait Implementations§
Source§impl Clone for ChatLogProbsDeltaEvent
impl Clone for ChatLogProbsDeltaEvent
Source§fn clone(&self) -> ChatLogProbsDeltaEvent
fn clone(&self) -> ChatLogProbsDeltaEvent
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 ChatLogProbsDeltaEvent
impl Debug for ChatLogProbsDeltaEvent
Source§impl<'de> Deserialize<'de> for ChatLogProbsDeltaEvent
impl<'de> Deserialize<'de> for ChatLogProbsDeltaEvent
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 ChatLogProbsDeltaEvent
impl PartialEq for ChatLogProbsDeltaEvent
Source§impl Serialize for ChatLogProbsDeltaEvent
impl Serialize for ChatLogProbsDeltaEvent
impl StructuralPartialEq for ChatLogProbsDeltaEvent
Auto Trait Implementations§
impl Freeze for ChatLogProbsDeltaEvent
impl RefUnwindSafe for ChatLogProbsDeltaEvent
impl Send for ChatLogProbsDeltaEvent
impl Sync for ChatLogProbsDeltaEvent
impl Unpin for ChatLogProbsDeltaEvent
impl UnsafeUnpin for ChatLogProbsDeltaEvent
impl UnwindSafe for ChatLogProbsDeltaEvent
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