pub struct DiscoveryReply {Show 14 fields
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>,
pub device_identity_pubkey: Vec<u8>,
pub device_identity_attestation: Vec<u8>,
pub device_identity_trusted: bool,
}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>§device_identity_pubkey: Vec<u8>Optional Ed25519 identity public key (32 bytes) used to sign handshake challenges.
device_identity_attestation: Vec<u8>Optional CBOR attestation blob from the manufacturer.
device_identity_trusted: boolWhether the device claims its identity attestation was verified.
Implementations§
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