pub struct DeviceData {
pub serial: u64,
pub name: String,
pub is_connected: bool,
pub manufacturer: Option<String>,
pub product: Option<String>,
}Fields§
§serial: u64§name: String§is_connected: bool§manufacturer: Option<String>§product: Option<String>Trait Implementations§
Source§impl Debug for DeviceData
impl Debug for DeviceData
Source§impl<'de> Deserialize<'de> for DeviceData
impl<'de> Deserialize<'de> for DeviceData
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 Hash for DeviceData
impl Hash for DeviceData
Source§impl PartialEq for DeviceData
impl PartialEq for DeviceData
Source§impl Schema for DeviceData
impl Schema for DeviceData
Source§impl Serialize for DeviceData
impl Serialize for DeviceData
impl StructuralPartialEq for DeviceData
Auto Trait Implementations§
impl Freeze for DeviceData
impl RefUnwindSafe for DeviceData
impl Send for DeviceData
impl Sync for DeviceData
impl Unpin for DeviceData
impl UnwindSafe for DeviceData
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