pub struct WorkflowStepStartedEvent {
pub step_name: String,
pub step_index: u32,
pub timestamp: DateTime<Utc>,
}Expand description
Payload of the WorkflowEvent::StepStarted workflow event.
§Examples
use chrono::Utc;
use ironflow_engine::notify::WorkflowStepStartedEvent;
let payload = WorkflowStepStartedEvent {
step_name: "build".to_string(),
step_index: 0,
timestamp: Utc::now(),
};
assert_eq!(payload.step_index, 0);Fields§
§step_name: StringHuman-readable step name.
step_index: u32Zero-based position in the workflow.
timestamp: DateTime<Utc>When the step started.
Trait Implementations§
Source§impl Clone for WorkflowStepStartedEvent
impl Clone for WorkflowStepStartedEvent
Source§impl Debug for WorkflowStepStartedEvent
impl Debug for WorkflowStepStartedEvent
Source§impl<'de> Deserialize<'de> for WorkflowStepStartedEvent
impl<'de> Deserialize<'de> for WorkflowStepStartedEvent
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 WorkflowStepStartedEvent
impl RefUnwindSafe for WorkflowStepStartedEvent
impl Send for WorkflowStepStartedEvent
impl Sync for WorkflowStepStartedEvent
impl Unpin for WorkflowStepStartedEvent
impl UnsafeUnpin for WorkflowStepStartedEvent
impl UnwindSafe for WorkflowStepStartedEvent
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