#[non_exhaustive]pub enum GeneratedMemLimit {
Explicit {
amount: GeneratedString,
unit: MemLimitUnit,
},
}Expand description
A safe explicit service memory limit selected for generated Compose output.
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.
Explicit
Emit one string amount and documented lowercase unit.
Fields
§
amount: GeneratedStringCanonical positive ASCII-integer amount without leading zeros.
§
unit: MemLimitUnitExplicit documented lowercase unit.
Trait Implementations§
Source§impl Clone for GeneratedMemLimit
impl Clone for GeneratedMemLimit
Source§fn clone(&self) -> GeneratedMemLimit
fn clone(&self) -> GeneratedMemLimit
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 GeneratedMemLimit
impl Debug for GeneratedMemLimit
impl Eq for GeneratedMemLimit
Source§impl PartialEq for GeneratedMemLimit
impl PartialEq for GeneratedMemLimit
impl StructuralPartialEq for GeneratedMemLimit
Auto Trait Implementations§
impl Freeze for GeneratedMemLimit
impl RefUnwindSafe for GeneratedMemLimit
impl Send for GeneratedMemLimit
impl Sync for GeneratedMemLimit
impl Unpin for GeneratedMemLimit
impl UnsafeUnpin for GeneratedMemLimit
impl UnwindSafe for GeneratedMemLimit
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