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.
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