pub struct ApprovalRejectedEvent {
pub run_id: Uuid,
pub step_id: Option<Uuid>,
pub rejected_by: String,
pub requirement: Option<ApprovalRequirement>,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::ApprovalRejected event.
§Examples
use chrono::Utc;
use ironflow_engine::notify::ApprovalRejectedEvent;
use uuid::Uuid;
let payload = ApprovalRejectedEvent {
run_id: Uuid::now_v7(),
step_id: Some(Uuid::now_v7()),
rejected_by: "bob".to_string(),
requirement: None,
at: Utc::now(),
};
assert_eq!(payload.rejected_by, "bob");Fields§
§run_id: UuidRun identifier.
step_id: Option<Uuid>Approval step identifier. None in events recorded before it existed.
rejected_by: StringUser who rejected (ID or username).
requirement: Option<ApprovalRequirement>Approvers the handler required, if any.
at: DateTime<Utc>When the rejection occurred.
Trait Implementations§
Source§impl Clone for ApprovalRejectedEvent
impl Clone for ApprovalRejectedEvent
Source§impl Debug for ApprovalRejectedEvent
impl Debug for ApprovalRejectedEvent
Source§impl<'de> Deserialize<'de> for ApprovalRejectedEvent
impl<'de> Deserialize<'de> for ApprovalRejectedEvent
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 ApprovalRejectedEvent
impl RefUnwindSafe for ApprovalRejectedEvent
impl Send for ApprovalRejectedEvent
impl Sync for ApprovalRejectedEvent
impl Unpin for ApprovalRejectedEvent
impl UnsafeUnpin for ApprovalRejectedEvent
impl UnwindSafe for ApprovalRejectedEvent
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