pub struct HardCaps {
pub per_operation_value: u128,
pub per_day_value: u128,
}Expand description
Hard caps enforced by the runtime as a second line of defense independent of the delegation scope.
Fields§
§per_operation_value: u128Per-operation value cap (raw u128, base units). Accepts JSON numbers (≤ u64::MAX) or strings (any u128).
per_day_value: u128Per-day cumulative value cap (raw u128, base units). Accepts JSON numbers (≤ u64::MAX) or strings (any u128).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HardCaps
impl<'de> Deserialize<'de> for HardCaps
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 Eq for HardCaps
impl StructuralPartialEq for HardCaps
Auto Trait Implementations§
impl Freeze for HardCaps
impl RefUnwindSafe for HardCaps
impl Send for HardCaps
impl Sync for HardCaps
impl Unpin for HardCaps
impl UnsafeUnpin for HardCaps
impl UnwindSafe for HardCaps
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