pub struct Group {
pub id: String,
pub name: String,
pub link: Link,
pub status: Status,
pub sensors: Vec<Sensor>,
pub lat: Option<f64>,
pub lon: Option<f64>,
}Expand description
A group of sensors sharing one node and one link, such as a clinic’s fridges.
Fields§
§id: StringA stable group identifier.
name: StringA human-readable group name, such as "Kano cold chain".
link: LinkThe group’s link.
status: StatusThe group’s overall health, the worst of its sensors.
sensors: Vec<Sensor>The sensors in the group.
lat: Option<f64>The node’s latitude in decimal degrees, if known. With lon it places
the node on a geographic map.
lon: Option<f64>The node’s longitude in decimal degrees, if known.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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