pub struct RunCreatedEvent {
pub run_id: Uuid,
pub workflow_name: String,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::RunCreated event.
§Examples
use chrono::Utc;
use ironflow_engine::notify::RunCreatedEvent;
use uuid::Uuid;
let payload = RunCreatedEvent {
run_id: Uuid::now_v7(),
workflow_name: "deploy".to_string(),
at: Utc::now(),
};
assert_eq!(payload.workflow_name, "deploy");Fields§
§run_id: UuidRun identifier.
workflow_name: StringWorkflow name.
at: DateTime<Utc>When the run was created.
Trait Implementations§
Source§impl Clone for RunCreatedEvent
impl Clone for RunCreatedEvent
Source§impl Debug for RunCreatedEvent
impl Debug for RunCreatedEvent
Source§impl<'de> Deserialize<'de> for RunCreatedEvent
impl<'de> Deserialize<'de> for RunCreatedEvent
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 RunCreatedEvent
impl RefUnwindSafe for RunCreatedEvent
impl Send for RunCreatedEvent
impl Sync for RunCreatedEvent
impl Unpin for RunCreatedEvent
impl UnsafeUnpin for RunCreatedEvent
impl UnwindSafe for RunCreatedEvent
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