pub struct AuditTrail {
pub workflow_id: Arc<str>,
pub task_id: Arc<str>,
pub timestamp: DateTime<Utc>,
pub changes: Vec<Change>,
pub status: usize,
pub loop_counter: Option<i64>,
}Fields§
§workflow_id: Arc<str>§task_id: Arc<str>§timestamp: DateTime<Utc>§changes: Vec<Change>§status: usize§loop_counter: Option<i64>Loop counter value for the sweep that produced this entry, for
workflows carrying a crate::engine::workflow::LoopConfig; None
otherwise.
The counter rather than a sweep ordinal: increment >= 1 makes it
strictly increasing, so it identifies the iteration and carries the
business meaning — in the per-item pattern it is the array index this
entry refers to. Recorded even when the loop leaves its counter
unnamed, since the engine tracks the value either way.
Skipped when None, so a non-looping workflow’s audit JSON is
byte-identical to what it was before loops existed.
Trait Implementations§
Source§impl Clone for AuditTrail
impl Clone for AuditTrail
Source§fn clone(&self) -> AuditTrail
fn clone(&self) -> AuditTrail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditTrail
impl Debug for AuditTrail
Source§impl<'de> Deserialize<'de> for AuditTrail
impl<'de> Deserialize<'de> for AuditTrail
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 AuditTrail
impl RefUnwindSafe for AuditTrail
impl Send for AuditTrail
impl Sync for AuditTrail
impl Unpin for AuditTrail
impl UnsafeUnpin for AuditTrail
impl UnwindSafe for AuditTrail
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