pub struct DeviceSnapshot {
pub device_id: String,
pub name: String,
pub platform: String,
pub daemon_version: String,
pub protocol_version: u32,
pub capabilities: CapabilitySet,
}Expand description
What the phone shows at the top of a device page.
Fields§
§device_id: String§name: StringThe name the user gave the machine when pairing. Not the hostname — a hostname is often an employer, a location or a person’s full name.
platform: Stringmacos, linux, windows. Coarse on purpose: an exact kernel build is
a fingerprint and helps nobody hold a phone.
daemon_version: String§protocol_version: u32§capabilities: CapabilitySetTrait Implementations§
Source§impl Clone for DeviceSnapshot
impl Clone for DeviceSnapshot
Source§fn clone(&self) -> DeviceSnapshot
fn clone(&self) -> DeviceSnapshot
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 DeviceSnapshot
impl Debug for DeviceSnapshot
Source§impl<'de> Deserialize<'de> for DeviceSnapshot
impl<'de> Deserialize<'de> for DeviceSnapshot
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 DeviceSnapshot
Source§impl PartialEq for DeviceSnapshot
impl PartialEq for DeviceSnapshot
Source§impl Serialize for DeviceSnapshot
impl Serialize for DeviceSnapshot
impl StructuralPartialEq for DeviceSnapshot
Auto Trait Implementations§
impl Freeze for DeviceSnapshot
impl RefUnwindSafe for DeviceSnapshot
impl Send for DeviceSnapshot
impl Sync for DeviceSnapshot
impl Unpin for DeviceSnapshot
impl UnsafeUnpin for DeviceSnapshot
impl UnwindSafe for DeviceSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.