pub struct WorkflowBudgetAuditEvent {
pub cursor: WorkflowBudgetAuditCursor,
pub tenant_id: WorkflowTenantId,
pub checkpoint_id: Option<CheckpointId>,
pub occurred_at_ms: u64,
pub kind: WorkflowBudgetAuditKind,
pub usage: Usage,
pub reservation_age_ms: Option<u64>,
pub limit: Budget,
pub committed: Usage,
pub reserved: Usage,
}Expand description
Immutable audit fact recorded with a tenant-budget state transition.
Fields§
§cursor: WorkflowBudgetAuditCursorMonotonic sequence within this tenant’s budget ledger.
tenant_id: WorkflowTenantIdTenant owning the decision.
checkpoint_id: Option<CheckpointId>Workflow checkpoint involved, when the decision is workflow-specific.
occurred_at_ms: u64Store-authoritative event time in Unix milliseconds.
kind: WorkflowBudgetAuditKindStable decision category.
usage: UsageEnvelope or committed delta associated with the decision.
reservation_age_ms: Option<u64>Age of the affected reservation, when applicable.
limit: BudgetPolicy active when the event was recorded.
committed: UsageCommitted usage immediately after the decision.
reserved: UsageReserved usage immediately after the decision.
Trait Implementations§
Source§impl Clone for WorkflowBudgetAuditEvent
impl Clone for WorkflowBudgetAuditEvent
Source§fn clone(&self) -> WorkflowBudgetAuditEvent
fn clone(&self) -> WorkflowBudgetAuditEvent
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 WorkflowBudgetAuditEvent
impl Debug for WorkflowBudgetAuditEvent
impl Eq for WorkflowBudgetAuditEvent
Source§impl PartialEq for WorkflowBudgetAuditEvent
impl PartialEq for WorkflowBudgetAuditEvent
impl StructuralPartialEq for WorkflowBudgetAuditEvent
Auto Trait Implementations§
impl Freeze for WorkflowBudgetAuditEvent
impl RefUnwindSafe for WorkflowBudgetAuditEvent
impl Send for WorkflowBudgetAuditEvent
impl Sync for WorkflowBudgetAuditEvent
impl Unpin for WorkflowBudgetAuditEvent
impl UnsafeUnpin for WorkflowBudgetAuditEvent
impl UnwindSafe for WorkflowBudgetAuditEvent
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