#[non_exhaustive]pub enum MemLimitKind {
Documented {
amount_raw: String,
unit: MemLimitUnit,
},
Zero {
amount_raw: String,
unit: Option<MemLimitUnit>,
},
Expression,
SchemaNumber,
ProviderDependentString,
}Expand description
The raw-preserving semantic family of a service memory limit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Documented
A string ending in one documented lowercase suffix.
Fields
§
unit: MemLimitUnitExact documented suffix family.
Zero
An all-zero integral spelling whose portable runtime meaning is not inferred.
Fields
§
unit: Option<MemLimitUnit>Documented suffix when one was present.
Expression
A dollar-bearing string deferred to Compose interpolation.
SchemaNumber
A schema-accepted YAML number without a documented explicit unit.
ProviderDependentString
A schema-accepted YAML string outside the documented lowercase-suffix family.
Trait Implementations§
Source§impl Clone for MemLimitKind
impl Clone for MemLimitKind
Source§fn clone(&self) -> MemLimitKind
fn clone(&self) -> MemLimitKind
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 MemLimitKind
impl Debug for MemLimitKind
impl Eq for MemLimitKind
Source§impl PartialEq for MemLimitKind
impl PartialEq for MemLimitKind
impl StructuralPartialEq for MemLimitKind
Auto Trait Implementations§
impl Freeze for MemLimitKind
impl RefUnwindSafe for MemLimitKind
impl Send for MemLimitKind
impl Sync for MemLimitKind
impl Unpin for MemLimitKind
impl UnsafeUnpin for MemLimitKind
impl UnwindSafe for MemLimitKind
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