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 (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 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<DeviceIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DeviceIdentity
Source§impl PartialEq for DeviceIdentity
impl PartialEq for DeviceIdentity
Source§fn eq(&self, other: &DeviceIdentity) -> bool
fn eq(&self, other: &DeviceIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceIdentity
impl Serialize for DeviceIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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