pub struct JobStreamEvent {
pub event_type: String,
pub job_id: Option<String>,
pub status: Option<String>,
pub result: Option<Value>,
pub error: Option<String>,
pub cost_ticks: i64,
pub completed_at: Option<String>,
}Expand description
A single SSE event from a job stream.
Fields§
§event_type: StringEvent type (e.g. “progress”, “complete”, “error”).
job_id: Option<String>Job identifier.
status: Option<String>Job status.
result: Option<Value>Job result (on completion).
error: Option<String>Error message (on failure).
cost_ticks: i64Total cost in ticks.
completed_at: Option<String>Completion timestamp.
Trait Implementations§
Source§impl Clone for JobStreamEvent
impl Clone for JobStreamEvent
Source§fn clone(&self) -> JobStreamEvent
fn clone(&self) -> JobStreamEvent
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 JobStreamEvent
impl Debug for JobStreamEvent
Source§impl<'de> Deserialize<'de> for JobStreamEvent
impl<'de> Deserialize<'de> for JobStreamEvent
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 JobStreamEvent
impl RefUnwindSafe for JobStreamEvent
impl Send for JobStreamEvent
impl Sync for JobStreamEvent
impl Unpin for JobStreamEvent
impl UnsafeUnpin for JobStreamEvent
impl UnwindSafe for JobStreamEvent
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