pub enum AtpBudget {
Limited(f64),
Unbounded,
}Expand description
role:Scope — the MRH horizon the role reads and acts within.
role:atpBudget — the ATP ceiling a role may spend per period, enforced by the
Treasurer at act time. Unbounded MUST be an explicit choice ON the record, never
an omission: absence deserializes to Limited(0.0) (no budget = fail-closed),
so an attributed-but-unbounded role is a deliberate Unbounded, not a silent gap.
Variants§
Limited(f64)
A finite per-period ceiling.
Unbounded
Explicitly unbounded — a choice on the record, subject to audit.
Trait Implementations§
impl Copy for AtpBudget
Source§impl<'de> Deserialize<'de> for AtpBudget
impl<'de> Deserialize<'de> for AtpBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AtpBudget
Auto Trait Implementations§
impl Freeze for AtpBudget
impl RefUnwindSafe for AtpBudget
impl Send for AtpBudget
impl Sync for AtpBudget
impl Unpin for AtpBudget
impl UnsafeUnpin for AtpBudget
impl UnwindSafe for AtpBudget
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