pub enum UniversalEvent {
ResponseStart {
id: Option<String>,
model: Option<String>,
extensions: Extensions,
},
MessageStart {
id: String,
role: Role,
extensions: Extensions,
},
ContentStart {
index: usize,
block: ContentBlock,
},
TextDelta {
index: usize,
text: String,
},
ReasoningDelta {
index: usize,
text: String,
},
ToolCallDelta {
id: String,
name: Option<String>,
arguments_delta: String,
},
ContentDone {
index: usize,
final_block: Option<ContentBlock>,
},
MessageDone {
finish_reason: Option<FinishReason>,
usage: Option<Usage>,
extensions: Extensions,
},
ResponseDone {
usage: Option<Usage>,
extensions: Extensions,
},
Error {
message: String,
raw: Option<Value>,
},
Unknown {
raw: Value,
tags: BTreeMap<String, String>,
},
}Variants§
ResponseStart
MessageStart
ContentStart
TextDelta
ReasoningDelta
ToolCallDelta
ContentDone
MessageDone
ResponseDone
Error
Unknown
Trait Implementations§
Source§impl Clone for UniversalEvent
impl Clone for UniversalEvent
Source§fn clone(&self) -> UniversalEvent
fn clone(&self) -> UniversalEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UniversalEvent
impl Debug for UniversalEvent
Source§impl<'de> Deserialize<'de> for UniversalEvent
impl<'de> Deserialize<'de> for UniversalEvent
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 UniversalEvent
impl PartialEq for UniversalEvent
Source§fn eq(&self, other: &UniversalEvent) -> bool
fn eq(&self, other: &UniversalEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UniversalEvent
impl Serialize for UniversalEvent
impl StructuralPartialEq for UniversalEvent
Auto Trait Implementations§
impl Freeze for UniversalEvent
impl RefUnwindSafe for UniversalEvent
impl Send for UniversalEvent
impl Sync for UniversalEvent
impl Unpin for UniversalEvent
impl UnsafeUnpin for UniversalEvent
impl UnwindSafe for UniversalEvent
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