pub struct Threshold {
pub min: Option<f64>,
pub max: Option<f64>,
pub warning_low: Option<f64>,
pub warning_high: Option<f64>,
pub critical_low: Option<f64>,
pub critical_high: Option<f64>,
pub unit: String,
}Fields§
§min: Option<f64>§max: Option<f64>§warning_low: Option<f64>§warning_high: Option<f64>§critical_low: Option<f64>§critical_high: Option<f64>§unit: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Threshold
impl<'de> Deserialize<'de> for Threshold
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 Threshold
impl RefUnwindSafe for Threshold
impl Send for Threshold
impl Sync for Threshold
impl Unpin for Threshold
impl UnsafeUnpin for Threshold
impl UnwindSafe for Threshold
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