pub struct InvariantStateRecord {
pub loop_id: WorkflowId,
pub invariant: String,
pub payload: Payload,
pub record_type: String,
pub window_seq: Option<u64>,
pub recorded_at: DateTime<Utc>,
}Expand description
The current-state record of one invariant (R7): a store document of the invariant’s declared type, type-erased as payload bytes + type name.
Fields§
§loop_id: WorkflowIdLoop the invariant belongs to.
invariant: StringInvariant name.
payload: PayloadThe record value, typed at the surface by record_type and carried
type-erased here (the load-bearing type-erasure invariant).
record_type: StringDeclared AWL type name of the value — provenance, never a schema.
window_seq: Option<u64>Cadence window the value was produced in; None on signal-only loops.
recorded_at: DateTime<Utc>When the value was recorded.
Trait Implementations§
Source§impl Clone for InvariantStateRecord
impl Clone for InvariantStateRecord
Source§fn clone(&self) -> InvariantStateRecord
fn clone(&self) -> InvariantStateRecord
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 InvariantStateRecord
impl Debug for InvariantStateRecord
Source§impl<'de> Deserialize<'de> for InvariantStateRecord
impl<'de> Deserialize<'de> for InvariantStateRecord
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
impl Eq for InvariantStateRecord
Source§impl PartialEq for InvariantStateRecord
impl PartialEq for InvariantStateRecord
Source§impl Serialize for InvariantStateRecord
impl Serialize for InvariantStateRecord
impl StructuralPartialEq for InvariantStateRecord
Auto Trait Implementations§
impl Freeze for InvariantStateRecord
impl RefUnwindSafe for InvariantStateRecord
impl Send for InvariantStateRecord
impl Sync for InvariantStateRecord
impl Unpin for InvariantStateRecord
impl UnsafeUnpin for InvariantStateRecord
impl UnwindSafe for InvariantStateRecord
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