pub struct WorkflowEvent {
pub seq: u64,
pub timestamp_secs: u64,
pub event_type: WorkflowEventType,
pub workflow_id: String,
pub task_id: Option<String>,
pub message: String,
}Expand description
A single structured log entry within a WorkflowLog.
Fields§
§seq: u64Monotonically increasing sequence number within the log.
timestamp_secs: u64Seconds since the UNIX epoch when this event was recorded.
event_type: WorkflowEventTypeThe kind of event.
workflow_id: StringIdentifier of the workflow this event belongs to.
task_id: Option<String>Optional identifier of the specific task (if task-scoped).
message: StringHuman-readable message providing additional context.
Implementations§
Source§impl WorkflowEvent
impl WorkflowEvent
Sourcepub fn workflow_event(
seq: u64,
event_type: WorkflowEventType,
workflow_id: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn workflow_event( seq: u64, event_type: WorkflowEventType, workflow_id: impl Into<String>, message: impl Into<String>, ) -> Self
Creates a workflow-level event using the current system time.
Sourcepub fn task_event(
seq: u64,
event_type: WorkflowEventType,
workflow_id: impl Into<String>,
task_id: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn task_event( seq: u64, event_type: WorkflowEventType, workflow_id: impl Into<String>, task_id: impl Into<String>, message: impl Into<String>, ) -> Self
Creates a task-scoped event using the current system time.
Trait Implementations§
Source§impl Clone for WorkflowEvent
impl Clone for WorkflowEvent
Source§fn clone(&self) -> WorkflowEvent
fn clone(&self) -> WorkflowEvent
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 WorkflowEvent
impl Debug for WorkflowEvent
Source§impl<'de> Deserialize<'de> for WorkflowEvent
impl<'de> Deserialize<'de> for WorkflowEvent
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 WorkflowEvent
impl PartialEq for WorkflowEvent
Source§impl Serialize for WorkflowEvent
impl Serialize for WorkflowEvent
impl StructuralPartialEq for WorkflowEvent
Auto Trait Implementations§
impl Freeze for WorkflowEvent
impl RefUnwindSafe for WorkflowEvent
impl Send for WorkflowEvent
impl Sync for WorkflowEvent
impl Unpin for WorkflowEvent
impl UnsafeUnpin for WorkflowEvent
impl UnwindSafe for WorkflowEvent
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