pub struct QuotaSpec {
pub stratify_format_version: u32,
pub input: String,
pub by: Vec<String>,
pub quotas: BTreeMap<BucketKey, usize>,
}Expand description
A hand-editable quota file: observed (or desired) per-bucket target counts. quotas’ keys are
caller-defined bucket-key strings, reused verbatim (not trimmed/reparsed) so there is never a
second representation of “what bucket is this” that could drift from the first. by makes the
file self-describing: a caller reconstructs its own bucketing dimensions from this field alone,
never from separately-passed flags, so an apply-time mismatch between flags and file is
structurally impossible.
Fields§
§stratify_format_version: u32§input: String§by: Vec<String>§quotas: BTreeMap<BucketKey, usize>Trait Implementations§
Source§impl<'de> Deserialize<'de> for QuotaSpec
impl<'de> Deserialize<'de> for QuotaSpec
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 QuotaSpec
impl RefUnwindSafe for QuotaSpec
impl Send for QuotaSpec
impl Sync for QuotaSpec
impl Unpin for QuotaSpec
impl UnsafeUnpin for QuotaSpec
impl UnwindSafe for QuotaSpec
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