pub struct AssistantStreamEvent {
pub event: String,
pub data: Value,
}Expand description
表示 Assistants/Beta Threads SSE 事件。
Fields§
§event: StringSSE 事件名。
data: Value事件对应的 JSON 负载。
Implementations§
Trait Implementations§
Source§impl Clone for AssistantStreamEvent
impl Clone for AssistantStreamEvent
Source§fn clone(&self) -> AssistantStreamEvent
fn clone(&self) -> AssistantStreamEvent
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 AssistantStreamEvent
impl Debug for AssistantStreamEvent
Source§impl<'de> Deserialize<'de> for AssistantStreamEvent
impl<'de> Deserialize<'de> for AssistantStreamEvent
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 AssistantStreamEvent
impl PartialEq for AssistantStreamEvent
Source§impl Serialize for AssistantStreamEvent
impl Serialize for AssistantStreamEvent
impl StructuralPartialEq for AssistantStreamEvent
Auto Trait Implementations§
impl Freeze for AssistantStreamEvent
impl RefUnwindSafe for AssistantStreamEvent
impl Send for AssistantStreamEvent
impl Sync for AssistantStreamEvent
impl Unpin for AssistantStreamEvent
impl UnsafeUnpin for AssistantStreamEvent
impl UnwindSafe for AssistantStreamEvent
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