pub struct DiscoveryReply {
pub message_type: MessageType,
pub alpine_version: String,
pub device_id: String,
pub manufacturer_id: String,
pub model_id: String,
pub hardware_rev: String,
pub firmware_rev: String,
pub mac: String,
pub server_nonce: Vec<u8>,
pub capabilities: CapabilitySet,
pub signature: Vec<u8>,
}Expand description
Discovery reply signed by the device.
Fields§
§message_type: MessageType§alpine_version: String§device_id: String§manufacturer_id: String§model_id: String§hardware_rev: String§firmware_rev: String§mac: String§server_nonce: Vec<u8>§capabilities: CapabilitySet§signature: Vec<u8>Implementations§
Source§impl DiscoveryReply
impl DiscoveryReply
pub fn new( identity: &DeviceIdentity, mac: String, server_nonce: Vec<u8>, capabilities: CapabilitySet, signature: Vec<u8>, ) -> Self
Trait Implementations§
Source§impl Clone for DiscoveryReply
impl Clone for DiscoveryReply
Source§fn clone(&self) -> DiscoveryReply
fn clone(&self) -> DiscoveryReply
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 DiscoveryReply
impl Debug for DiscoveryReply
Source§impl<'de> Deserialize<'de> for DiscoveryReply
impl<'de> Deserialize<'de> for DiscoveryReply
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 DiscoveryReply
impl PartialEq for DiscoveryReply
Source§impl Serialize for DiscoveryReply
impl Serialize for DiscoveryReply
impl StructuralPartialEq for DiscoveryReply
Auto Trait Implementations§
impl Freeze for DiscoveryReply
impl RefUnwindSafe for DiscoveryReply
impl Send for DiscoveryReply
impl Sync for DiscoveryReply
impl Unpin for DiscoveryReply
impl UnwindSafe for DiscoveryReply
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