Struct GateLedgerEntry
pub struct GateLedgerEntry {
pub run_id: String,
pub step: u32,
pub gate_revision: Option<u32>,
pub checkpoint_revision: Option<u32>,
pub decision_identity: Option<String>,
pub kind: GateEventKind,
pub decision: Option<ApprovalDecision>,
pub principal: ApprovalPrincipal,
pub ts: String,
}Expand description
One immutable ledger row per gate event. Becomes a SopEventRecord via
into_event_record, which the store appends (assigning the monotonic seq).
Fields§
§run_id: String§step: u32§gate_revision: Option<u32>§checkpoint_revision: Option<u32>§decision_identity: Option<String>§kind: GateEventKind§decision: Option<ApprovalDecision>§principal: ApprovalPrincipal§ts: StringImplementations§
Source§impl GateLedgerEntry
impl GateLedgerEntry
Sourcepub fn into_event_record(self) -> SopEventRecord
pub fn into_event_record(self) -> SopEventRecord
Map onto EPIC B’s append-only SopEventRecord. seq is assigned by the
store at append_event time (left 0 here). actor is the principal’s
best-effort identity (falling back to the source label); reason carries a
deny reason when present; payload records source/channel/step/decision.
Trait Implementations§
Source§impl Clone for GateLedgerEntry
impl Clone for GateLedgerEntry
Source§fn clone(&self) -> GateLedgerEntry
fn clone(&self) -> GateLedgerEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GateLedgerEntry
impl RefUnwindSafe for GateLedgerEntry
impl Send for GateLedgerEntry
impl Sync for GateLedgerEntry
impl Unpin for GateLedgerEntry
impl UnsafeUnpin for GateLedgerEntry
impl UnwindSafe for GateLedgerEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more