pub struct EffectiveLimit {
pub source: LimitSource,
pub value: Option<i64>,
}Expand description
Resolved limit for (subject, key, period), with provenance so the dashboard can
explain to admins which line of policy is in effect.
JSON schema
{
"description": "Resolved limit for `(subject, key, period)`, with provenance so the dashboard can\nexplain to admins which line of policy is in effect.",
"type": "object",
"required": [
"source"
],
"properties": {
"source": {
"$ref": "#/components/schemas/LimitSource"
},
"value": {
"description": "The effective cap. `None` means \"unlimited\".",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§source: LimitSource§value: Option<i64>The effective cap. None means “unlimited”.
Trait Implementations§
Source§impl Clone for EffectiveLimit
impl Clone for EffectiveLimit
Source§fn clone(&self) -> EffectiveLimit
fn clone(&self) -> EffectiveLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EffectiveLimit
impl Debug for EffectiveLimit
Source§impl<'de> Deserialize<'de> for EffectiveLimit
impl<'de> Deserialize<'de> for EffectiveLimit
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
Auto Trait Implementations§
impl Freeze for EffectiveLimit
impl RefUnwindSafe for EffectiveLimit
impl Send for EffectiveLimit
impl Sync for EffectiveLimit
impl Unpin for EffectiveLimit
impl UnsafeUnpin for EffectiveLimit
impl UnwindSafe for EffectiveLimit
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