pub struct Hardware {
pub name: String,
pub ty: HardwareType,
pub children: Vec<Hardware>,
pub sensors: Vec<Sensor>,
}Fields§
§name: StringName of the hardware
ty: HardwareTypeType of hardware
children: Vec<Hardware>Children for the hardware
sensors: Vec<Sensor>Sensors attached to the hardware
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hardware
impl<'de> Deserialize<'de> for Hardware
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 Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnwindSafe for Hardware
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