pub struct Denial {
pub name: String,
pub scope: BudgetScope,
pub unit: BudgetUnit,
pub rollback_failures: usize,
}Expand description
A budget denial: which budget rejected the request, its scope (the block-counter label) and unit
(so a cost cap can answer 402 while a token cap answers 429).
Fields§
§name: String§scope: BudgetScope§unit: BudgetUnit§rollback_failures: usizeBudgets reserved before this denial that failed to roll back against the store — drift,
like a failed BudgetEngine::reconcile/BudgetEngine::release settle. The caller
should feed this into the same edgeguard_llm_budget_reconcile_failures_total counter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Denial
impl RefUnwindSafe for Denial
impl Send for Denial
impl Sync for Denial
impl Unpin for Denial
impl UnsafeUnpin for Denial
impl UnwindSafe for Denial
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