pub struct WorkflowResumedEvent {
pub workflow_name: String,
pub user_id: Option<Uuid>,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::WorkflowResumed event.
Emitted only when the workflow was paused: resuming a workflow that is not paused changes nothing and emits nothing.
§Examples
use chrono::Utc;
use ironflow_engine::notify::WorkflowResumedEvent;
use uuid::Uuid;
let payload = WorkflowResumedEvent {
workflow_name: "deploy".to_string(),
user_id: Some(Uuid::now_v7()),
at: Utc::now(),
};
assert_eq!(payload.workflow_name, "deploy");Fields§
§workflow_name: StringResumed workflow.
user_id: Option<Uuid>ID of the user who resumed the workflow. None when no user is behind
the call.
at: DateTime<Utc>When the workflow was resumed.
Trait Implementations§
Source§impl Clone for WorkflowResumedEvent
impl Clone for WorkflowResumedEvent
Source§impl Debug for WorkflowResumedEvent
impl Debug for WorkflowResumedEvent
Source§impl<'de> Deserialize<'de> for WorkflowResumedEvent
impl<'de> Deserialize<'de> for WorkflowResumedEvent
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 WorkflowResumedEvent
impl RefUnwindSafe for WorkflowResumedEvent
impl Send for WorkflowResumedEvent
impl Sync for WorkflowResumedEvent
impl Unpin for WorkflowResumedEvent
impl UnsafeUnpin for WorkflowResumedEvent
impl UnwindSafe for WorkflowResumedEvent
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