pub struct SignalAwaitedEvent {
pub run_id: Uuid,
pub step_id: Uuid,
pub step_name: String,
pub name: String,
pub key: String,
pub deadline_at: DateTime<Utc>,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::SignalAwaited event.
Emitted when a run suspends on ctx.wait_for_signal and goes Sleeping.
§Examples
use chrono::{TimeDelta, Utc};
use ironflow_engine::notify::SignalAwaitedEvent;
use uuid::Uuid;
let now = Utc::now();
let payload = SignalAwaitedEvent {
run_id: Uuid::now_v7(),
step_id: Uuid::now_v7(),
step_name: "wait-ci".to_string(),
name: "ci.pipeline_finished".to_string(),
key: "4f2a9c1".to_string(),
deadline_at: now + TimeDelta::hours(1),
at: now,
};
assert_eq!(payload.key, "4f2a9c1");Fields§
§run_id: UuidRun identifier.
step_id: UuidThe signal step the run waits on.
step_name: StringName of the signal step.
name: StringAwaited signal name.
key: StringAwaited occurrence key.
deadline_at: DateTime<Utc>When the wait times out.
at: DateTime<Utc>When the run started waiting.
Trait Implementations§
Source§impl Clone for SignalAwaitedEvent
impl Clone for SignalAwaitedEvent
Source§impl Debug for SignalAwaitedEvent
impl Debug for SignalAwaitedEvent
Source§impl<'de> Deserialize<'de> for SignalAwaitedEvent
impl<'de> Deserialize<'de> for SignalAwaitedEvent
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 SignalAwaitedEvent
impl RefUnwindSafe for SignalAwaitedEvent
impl Send for SignalAwaitedEvent
impl Sync for SignalAwaitedEvent
impl Unpin for SignalAwaitedEvent
impl UnsafeUnpin for SignalAwaitedEvent
impl UnwindSafe for SignalAwaitedEvent
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