pub struct DeviceInfo {
pub product_name: Option<String>,
pub manufacturer: Option<String>,
pub software_version: Option<String>,
pub mac_address: Option<String>,
}Expand description
The device_info object of ClientHello.
Every field is optional and plain text of at most 64 bytes in UTF-8.
Fields§
§product_name: Option<String>Device model or product name.
manufacturer: Option<String>Device manufacturer.
software_version: Option<String>Software version of the client, not the protocol version.
mac_address: Option<String>Network interface MAC address as lowercase colon-separated bytes.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl Default for DeviceInfo
impl Default for DeviceInfo
Source§impl<'de> Deserialize<'de> for DeviceInfo
impl<'de> Deserialize<'de> for DeviceInfo
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 Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
Source§impl Serialize for DeviceInfo
impl Serialize for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Forget for DeviceInfo
impl Freeze for DeviceInfo
impl Move for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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