pub enum LimitSource {
Override {
id: String,
},
Tier {
slug: String,
},
Default,
}Expand description
LimitSource
JSON schema
{
"oneOf": [
{
"description": "A row in `quota_overrides`; carries the override id for traceability.",
"type": "object",
"required": [
"id",
"kind"
],
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string",
"enum": [
"override"
]
}
}
},
{
"description": "A row in `tier_quotas`; carries the tier slug.",
"type": "object",
"required": [
"kind",
"slug"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"tier"
]
},
"slug": {
"type": "string"
}
}
},
{
"description": "The hardcoded fallback in `catalog::DEFAULT_TIER_FOR_PERSONAL` when no\ntier is configured for the org (e.g. brand-new personal workspace).",
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"default"
]
}
}
}
]
}Variants§
Override
A row in quota_overrides; carries the override id for traceability.
Tier
A row in tier_quotas; carries the tier slug.
Default
Trait Implementations§
Source§impl Clone for LimitSource
impl Clone for LimitSource
Source§fn clone(&self) -> LimitSource
fn clone(&self) -> LimitSource
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 LimitSource
impl Debug for LimitSource
Source§impl<'de> Deserialize<'de> for LimitSource
impl<'de> Deserialize<'de> for LimitSource
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 LimitSource
impl RefUnwindSafe for LimitSource
impl Send for LimitSource
impl Sync for LimitSource
impl Unpin for LimitSource
impl UnsafeUnpin for LimitSource
impl UnwindSafe for LimitSource
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