#[non_exhaustive]pub enum CpuPercent {
YamlInteger(String),
String(String),
OutOfRangeYamlInteger(String),
}Expand description
A service cpu_percent scalar category with exact authored spelling.
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.
YamlInteger(String)
A YAML integer in the schema’s inclusive 0..=100 range.
String(String)
A YAML string scalar retained without numeric coercion.
OutOfRangeYamlInteger(String)
A YAML integer outside the schema’s inclusive 0..=100 range, retained as invalid evidence.
Implementations§
Trait Implementations§
Source§impl Clone for CpuPercent
impl Clone for CpuPercent
Source§fn clone(&self) -> CpuPercent
fn clone(&self) -> CpuPercent
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 CpuPercent
impl Debug for CpuPercent
impl Eq for CpuPercent
Source§impl PartialEq for CpuPercent
impl PartialEq for CpuPercent
impl StructuralPartialEq for CpuPercent
Auto Trait Implementations§
impl Freeze for CpuPercent
impl RefUnwindSafe for CpuPercent
impl Send for CpuPercent
impl Sync for CpuPercent
impl Unpin for CpuPercent
impl UnsafeUnpin for CpuPercent
impl UnwindSafe for CpuPercent
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