pub struct DevicePair {
pub udid: String,
pub watch: DeviceSummary,
pub phone: DeviceSummary,
pub state: DevicePairState,
}Expand description
Information about a device pair.
Fields§
§udid: StringNote: this field is not directly present in JSON. Instead, the JSON representation is a hashmap of runtime IDs (keys) and devices (values) that we later connect during deserialization.
watch: DeviceSummaryContains a summary of the watch device.
phone: DeviceSummaryContains a summary of the phone device.
state: DevicePairStateContains the state of this device pair.
Trait Implementations§
Source§impl Clone for DevicePair
impl Clone for DevicePair
Source§fn clone(&self) -> DevicePair
fn clone(&self) -> DevicePair
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 DevicePair
impl Debug for DevicePair
Source§impl<'de> Deserialize<'de> for DevicePair
impl<'de> Deserialize<'de> for DevicePair
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 DevicePair
impl PartialEq for DevicePair
impl Eq for DevicePair
impl StructuralPartialEq for DevicePair
Auto Trait Implementations§
impl Freeze for DevicePair
impl RefUnwindSafe for DevicePair
impl Send for DevicePair
impl Sync for DevicePair
impl Unpin for DevicePair
impl UnwindSafe for DevicePair
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