pub enum LimitType {
Rate,
Threshold,
Budget,
Count,
}Expand description
Type of risk limit.
Variants§
Rate
Rate limit (actions per time window).
Threshold
Threshold limit (value must stay below).
Budget
Budget limit (cumulative spending cap).
Count
Count limit (total number of actions).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LimitType
impl<'de> Deserialize<'de> for LimitType
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 Copy for LimitType
impl Eq for LimitType
impl StructuralPartialEq for LimitType
Auto Trait Implementations§
impl Freeze for LimitType
impl RefUnwindSafe for LimitType
impl Send for LimitType
impl Sync for LimitType
impl Unpin for LimitType
impl UnsafeUnpin for LimitType
impl UnwindSafe for LimitType
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