pub struct BudgetKeyContext { /* private fields */ }Expand description
Key context for budget partition keys.
Implementations§
Source§impl BudgetKeyContext
impl BudgetKeyContext
pub fn new(partition: &Partition, bid: &BudgetId) -> Self
Sourcepub fn definition(&self) -> String
pub fn definition(&self) -> String
ff:budget:{b:M}:<budget_id> — Budget definition.
Sourcepub fn limits(&self) -> String
pub fn limits(&self) -> String
ff:budget:{b:M}:<budget_id>:limits — Hard/soft limits per dimension.
Sourcepub fn executions(&self) -> String
pub fn executions(&self) -> String
ff:budget:{b:M}:<budget_id>:executions — Reverse index.
Sourcepub fn by_exec(&self, execution_id: &str) -> String
pub fn by_exec(&self, execution_id: &str) -> String
ff:budget:{b:M}:<budget_id>:by_exec:<execution_id> — per-execution
attribution ledger (cairn #454 option A). HASH of dim -> delta.
Written by ff_record_spend and reversed by ff_release_budget.
Sourcepub fn by_exec_index(&self) -> String
pub fn by_exec_index(&self) -> String
ff:budget:{b:M}:<budget_id>:by_exec:index — SET of execution_ids
with an active ledger entry. Lets admin flows enumerate pending
attributions (cairn #454).
pub fn hash_tag(&self) -> &str
Auto Trait Implementations§
impl Freeze for BudgetKeyContext
impl RefUnwindSafe for BudgetKeyContext
impl Send for BudgetKeyContext
impl Sync for BudgetKeyContext
impl Unpin for BudgetKeyContext
impl UnsafeUnpin for BudgetKeyContext
impl UnwindSafe for BudgetKeyContext
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