pub struct SensorUpdate {
pub base: Option<ResourceUpdate>,
pub physical_context: Option<PhysicalContext>,
pub physical_sub_context: Option<PhysicalSubContext>,
pub location: Option<LocationUpdate>,
pub thresholds: Option<ThresholdsUpdate>,
pub links: Option<LinksUpdate>,
pub sensor_group: Option<RedundantGroupUpdate>,
pub averaging_interval: Option<Duration>,
pub calibration: Option<Decimal>,
pub calibration_time: Option<DateTimeOffset>,
pub user_label: Option<String>,
pub enabled: Option<Boolean>,
}Expand description
Update struct corresponding to Sensor
Fields§
§base: Option<ResourceUpdate>§physical_context: Option<PhysicalContext>§physical_sub_context: Option<PhysicalSubContext>§location: Option<LocationUpdate>§thresholds: Option<ThresholdsUpdate>§links: Option<LinksUpdate>§sensor_group: Option<RedundantGroupUpdate>§averaging_interval: Option<Duration>§calibration: Option<Decimal>§calibration_time: Option<DateTimeOffset>§user_label: Option<String>§enabled: Option<Boolean>Implementations§
Source§impl SensorUpdate
impl SensorUpdate
pub fn builder() -> Self
pub const fn build(self) -> Self
pub fn with_base(self, v: ResourceUpdate) -> Self
pub fn with_physical_context(self, v: PhysicalContext) -> Self
pub fn with_physical_sub_context(self, v: PhysicalSubContext) -> Self
pub fn with_location(self, v: LocationUpdate) -> Self
pub fn with_thresholds(self, v: ThresholdsUpdate) -> Self
pub fn with_links(self, v: LinksUpdate) -> Self
pub fn with_sensor_group(self, v: RedundantGroupUpdate) -> Self
pub fn with_averaging_interval(self, v: Duration) -> Self
pub fn with_calibration(self, v: Decimal) -> Self
pub fn with_calibration_time(self, v: DateTimeOffset) -> Self
pub fn with_user_label(self, v: String) -> Self
pub fn with_enabled(self, v: Boolean) -> Self
Trait Implementations§
Source§impl Debug for SensorUpdate
impl Debug for SensorUpdate
Source§impl Default for SensorUpdate
impl Default for SensorUpdate
Source§fn default() -> SensorUpdate
fn default() -> SensorUpdate
Returns the “default value” for a type. Read more
Source§impl Serialize for SensorUpdate
impl Serialize for SensorUpdate
Auto Trait Implementations§
impl Freeze for SensorUpdate
impl RefUnwindSafe for SensorUpdate
impl Send for SensorUpdate
impl Sync for SensorUpdate
impl Unpin for SensorUpdate
impl UnsafeUnpin for SensorUpdate
impl UnwindSafe for SensorUpdate
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