#[non_exhaustive]pub enum GeneratedUlimitValue {
Single(GeneratedString),
Range {
soft: Option<GeneratedString>,
hard: Option<GeneratedString>,
},
}Expand description
The single or soft/hard form selected for one generated service 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.
Single(GeneratedString)
One value applies to both the soft and hard limit.
Range
Separate required soft and hard values.
Fields
§
soft: Option<GeneratedString>Required soft limit; omission is rejected during construction.
§
hard: Option<GeneratedString>Required hard limit; omission is rejected during construction.
Trait Implementations§
Source§impl Clone for GeneratedUlimitValue
impl Clone for GeneratedUlimitValue
Source§fn clone(&self) -> GeneratedUlimitValue
fn clone(&self) -> GeneratedUlimitValue
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 GeneratedUlimitValue
impl Debug for GeneratedUlimitValue
impl Eq for GeneratedUlimitValue
Source§impl PartialEq for GeneratedUlimitValue
impl PartialEq for GeneratedUlimitValue
impl StructuralPartialEq for GeneratedUlimitValue
Auto Trait Implementations§
impl Freeze for GeneratedUlimitValue
impl RefUnwindSafe for GeneratedUlimitValue
impl Send for GeneratedUlimitValue
impl Sync for GeneratedUlimitValue
impl Unpin for GeneratedUlimitValue
impl UnsafeUnpin for GeneratedUlimitValue
impl UnwindSafe for GeneratedUlimitValue
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