pub enum StreamingEvent {
Message {
message: Message,
context_id: Option<String>,
kind: String,
final: bool,
},
TaskStatus {
task_id: String,
context_id: Option<String>,
status: TaskStatus,
kind: String,
final: bool,
},
TaskArtifact {
task_id: String,
artifact: Artifact,
append: bool,
last_chunk: bool,
final: bool,
},
Unknown,
}Expand description
Streaming event types (discriminated by ‘type’ field)
Variants§
Message
Message event from agent
Fields
TaskStatus
Task status update event
Fields
§
status: TaskStatusThe new status
TaskArtifact
Task artifact update event
Fields
Unknown
Catch-all for unknown streaming event types added by the A2A spec.
Trait Implementations§
Source§impl Clone for StreamingEvent
impl Clone for StreamingEvent
Source§fn clone(&self) -> StreamingEvent
fn clone(&self) -> StreamingEvent
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 StreamingEvent
impl Debug for StreamingEvent
Source§impl<'de> Deserialize<'de> for StreamingEvent
impl<'de> Deserialize<'de> for StreamingEvent
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 Freeze for StreamingEvent
impl RefUnwindSafe for StreamingEvent
impl Send for StreamingEvent
impl Sync for StreamingEvent
impl Unpin for StreamingEvent
impl UnsafeUnpin for StreamingEvent
impl UnwindSafe for StreamingEvent
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