pub struct DeviceObject {
pub id: String,
pub is_active: bool,
pub is_private_session: bool,
pub is_restricted: bool,
pub name: String,
pub _type: String,
pub volume_percent: usize,
}
Expand description
Fields§
§id: String
The device ID. This may be null
.
is_active: bool
If this device is the currently active device.
is_private_session: bool
If this device is currently in a private session.
is_restricted: bool
Whether controlling this device is restricted. At present if this is “true” then no Web API commands will be accepted by this device.
name: String
The name of the device.
_type: String
Device type, such as “computer”, “smartphone” or “speaker”.
volume_percent: usize
The current volume in percent. This may be null.
Trait Implementations§
Source§impl Clone for DeviceObject
impl Clone for DeviceObject
Source§fn clone(&self) -> DeviceObject
fn clone(&self) -> DeviceObject
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 DeviceObject
impl Debug for DeviceObject
Source§impl<'de> Deserialize<'de> for DeviceObject
impl<'de> Deserialize<'de> for DeviceObject
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 DeviceObject
impl PartialEq for DeviceObject
Source§impl Serialize for DeviceObject
impl Serialize for DeviceObject
impl Eq for DeviceObject
impl StructuralPartialEq for DeviceObject
Auto Trait Implementations§
impl Freeze for DeviceObject
impl RefUnwindSafe for DeviceObject
impl Send for DeviceObject
impl Sync for DeviceObject
impl Unpin for DeviceObject
impl UnwindSafe for DeviceObject
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,
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.