pub struct HeaterSnapshot {
pub actual_c: Option<Reported<f64>>,
pub target_c: Option<Reported<f64>>,
pub offset_c: Option<Reported<f64>>,
}Expand description
One heater, as a source reported it.
Every field is optional, because a source that reports no heater at all reports none of these; each is a plausibility-ranged reported value in degrees Celsius.
Fields§
§actual_c: Option<Reported<f64>>The temperature the heater is at.
target_c: Option<Reported<f64>>The temperature the heater is driving towards.
offset_c: Option<Reported<f64>>The offset applied to this heater’s target.
Trait Implementations§
Source§impl Clone for HeaterSnapshot
impl Clone for HeaterSnapshot
Source§fn clone(&self) -> HeaterSnapshot
fn clone(&self) -> HeaterSnapshot
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 HeaterSnapshot
impl Debug for HeaterSnapshot
Source§impl Default for HeaterSnapshot
impl Default for HeaterSnapshot
Source§fn default() -> HeaterSnapshot
fn default() -> HeaterSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HeaterSnapshot
impl<'de> Deserialize<'de> for HeaterSnapshot
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
Source§impl JsonSchema for HeaterSnapshot
impl JsonSchema for HeaterSnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HeaterSnapshot
impl PartialEq for HeaterSnapshot
Source§impl Sample for HeaterSnapshot
impl Sample for HeaterSnapshot
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§impl Serialize for HeaterSnapshot
impl Serialize for HeaterSnapshot
impl StructuralPartialEq for HeaterSnapshot
Auto Trait Implementations§
impl Freeze for HeaterSnapshot
impl RefUnwindSafe for HeaterSnapshot
impl Send for HeaterSnapshot
impl Sync for HeaterSnapshot
impl Unpin for HeaterSnapshot
impl UnsafeUnpin for HeaterSnapshot
impl UnwindSafe for HeaterSnapshot
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