pub enum StreamingEvent {
Status(TaskStatusUpdateEvent),
Artifact(TaskArtifactUpdateEvent),
}Expand description
An untagged enum of the two streaming event types.
The wire form is the inner object directly
— a TaskStatusUpdateEvent has taskId,
contextId, status, and final; a
TaskArtifactUpdateEvent has taskId,
contextId, and artifact. The two shapes
are discriminated by whether status or
artifact is the body field.
Variants§
Status(TaskStatusUpdateEvent)
A status update.
Artifact(TaskArtifactUpdateEvent)
An artifact update.
Trait Implementations§
Source§impl Clone for StreamingEvent
impl Clone for StreamingEvent
Source§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
impl Eq for StreamingEvent
Source§impl From<TaskArtifactUpdateEvent> for StreamingEvent
impl From<TaskArtifactUpdateEvent> for StreamingEvent
Source§fn from(event: TaskArtifactUpdateEvent) -> Self
fn from(event: TaskArtifactUpdateEvent) -> Self
Converts to this type from the input type.
Source§impl From<TaskStatusUpdateEvent> for StreamingEvent
impl From<TaskStatusUpdateEvent> for StreamingEvent
Source§fn from(event: TaskStatusUpdateEvent) -> Self
fn from(event: TaskStatusUpdateEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StreamingEvent
impl PartialEq for StreamingEvent
Source§impl Serialize for StreamingEvent
impl Serialize for StreamingEvent
impl StructuralPartialEq for StreamingEvent
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