#[non_exhaustive]pub struct StreamEventMessage {
pub event: Value,
pub session_id: Option<String>,
pub ttft_ms: Option<u64>,
pub parent_tool_use_id: Option<String>,
}Expand description
Partial streaming chunk. Source: chunk-20bv8pca.js:15343–15401
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event: ValueRaw Anthropic streaming event (message_start, content_block_delta, …).
session_id: Option<String>Session the frame belongs to.
ttft_ms: Option<u64>Time to first token, in ms.
parent_tool_use_id: Option<String>Tool call (e.g. a subagent) that produced the event; None for the main thread.
Trait Implementations§
Source§impl Clone for StreamEventMessage
impl Clone for StreamEventMessage
Source§impl Debug for StreamEventMessage
impl Debug for StreamEventMessage
Source§impl<'de> Deserialize<'de> for StreamEventMessage
impl<'de> Deserialize<'de> for StreamEventMessage
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
Auto Trait Implementations§
impl Forget for StreamEventMessage
impl Freeze for StreamEventMessage
impl Move for StreamEventMessage
impl RefUnwindSafe for StreamEventMessage
impl Send for StreamEventMessage
impl Sync for StreamEventMessage
impl Unpin for StreamEventMessage
impl UnsafeUnpin for StreamEventMessage
impl UnwindSafe for StreamEventMessage
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