pub struct ThresholdUpdate {
pub reading: Option<Decimal>,
pub activation: Option<ThresholdActivation>,
pub dwell_time: Option<Duration>,
pub hysteresis_reading: Option<Decimal>,
pub hysteresis_duration: Option<Duration>,
}Expand description
Update struct corresponding to Threshold
Fields§
§reading: Option<Decimal>§activation: Option<ThresholdActivation>§dwell_time: Option<Duration>§hysteresis_reading: Option<Decimal>§hysteresis_duration: Option<Duration>Implementations§
Source§impl ThresholdUpdate
impl ThresholdUpdate
pub fn builder() -> Self
pub const fn build(self) -> Self
pub fn with_reading(self, v: Decimal) -> Self
pub fn with_activation(self, v: ThresholdActivation) -> Self
pub fn with_dwell_time(self, v: Duration) -> Self
pub fn with_hysteresis_reading(self, v: Decimal) -> Self
pub fn with_hysteresis_duration(self, v: Duration) -> Self
Trait Implementations§
Source§impl Debug for ThresholdUpdate
impl Debug for ThresholdUpdate
Source§impl Default for ThresholdUpdate
impl Default for ThresholdUpdate
Source§fn default() -> ThresholdUpdate
fn default() -> ThresholdUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThresholdUpdate
impl RefUnwindSafe for ThresholdUpdate
impl Send for ThresholdUpdate
impl Sync for ThresholdUpdate
impl Unpin for ThresholdUpdate
impl UnsafeUnpin for ThresholdUpdate
impl UnwindSafe for ThresholdUpdate
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