pub struct DeviceIdentity {
pub device_id: String,
pub manufacturer_id: String,
pub model_id: String,
pub hardware_rev: String,
pub firmware_rev: String,
}Expand description
Device identity tuple exchanged during discovery and handshake.
Fields§
§device_id: String§manufacturer_id: String§model_id: String§hardware_rev: String§firmware_rev: StringTrait Implementations§
Source§impl Clone for DeviceIdentity
impl Clone for DeviceIdentity
Source§fn clone(&self) -> DeviceIdentity
fn clone(&self) -> DeviceIdentity
Returns a duplicate of the value. Read more
1.0.0 · 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 DeviceIdentity
impl Debug for DeviceIdentity
Source§impl<'de> Deserialize<'de> for DeviceIdentity
impl<'de> Deserialize<'de> for DeviceIdentity
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 PartialEq for DeviceIdentity
impl PartialEq for DeviceIdentity
Source§impl Serialize for DeviceIdentity
impl Serialize for DeviceIdentity
impl Eq for DeviceIdentity
impl StructuralPartialEq for DeviceIdentity
Auto Trait Implementations§
impl Freeze for DeviceIdentity
impl RefUnwindSafe for DeviceIdentity
impl Send for DeviceIdentity
impl Sync for DeviceIdentity
impl Unpin for DeviceIdentity
impl UnwindSafe for DeviceIdentity
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