pub struct ChatLogProbsDoneEvent {
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 ChatLogProbsDoneEvent
impl Clone for ChatLogProbsDoneEvent
Source§fn clone(&self) -> ChatLogProbsDoneEvent
fn clone(&self) -> ChatLogProbsDoneEvent
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 ChatLogProbsDoneEvent
impl Debug for ChatLogProbsDoneEvent
Source§impl<'de> Deserialize<'de> for ChatLogProbsDoneEvent
impl<'de> Deserialize<'de> for ChatLogProbsDoneEvent
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 ChatLogProbsDoneEvent
impl PartialEq for ChatLogProbsDoneEvent
Source§impl Serialize for ChatLogProbsDoneEvent
impl Serialize for ChatLogProbsDoneEvent
impl StructuralPartialEq for ChatLogProbsDoneEvent
Auto Trait Implementations§
impl Freeze for ChatLogProbsDoneEvent
impl RefUnwindSafe for ChatLogProbsDoneEvent
impl Send for ChatLogProbsDoneEvent
impl Sync for ChatLogProbsDoneEvent
impl Unpin for ChatLogProbsDoneEvent
impl UnsafeUnpin for ChatLogProbsDoneEvent
impl UnwindSafe for ChatLogProbsDoneEvent
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