pub struct EscalationRecord {
pub run_id: Uuid,
pub step_id: Uuid,
pub stage: u32,
pub action: EscalationAction,
pub reason: String,
}Expand description
Outcome of escalating one gate, returned by ApprovalEscalator::tick.
§Examples
use ironflow_engine::escalation::{EscalationAction, EscalationRecord};
use uuid::Uuid;
let record = EscalationRecord {
run_id: Uuid::now_v7(),
step_id: Uuid::now_v7(),
stage: 0,
action: EscalationAction::Rejected,
reason: "approval deadline of 3600s expired".to_string(),
};
assert_eq!(record.action, EscalationAction::Rejected);Fields§
§run_id: UuidRun the gate belongs to.
step_id: UuidThe approval step that expired.
stage: u32Escalation stage that fired (0-based).
action: EscalationActionWhat the escalation did.
reason: StringWhy it fired.
Trait Implementations§
Source§impl Clone for EscalationRecord
impl Clone for EscalationRecord
Auto Trait Implementations§
impl Freeze for EscalationRecord
impl RefUnwindSafe for EscalationRecord
impl Send for EscalationRecord
impl Sync for EscalationRecord
impl Unpin for EscalationRecord
impl UnsafeUnpin for EscalationRecord
impl UnwindSafe for EscalationRecord
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