pub struct DeviceGroup {
pub device_selectors: Option<Vec<DeviceSelector>>,
pub name: Option<String>,
}Expand description
A group of devices. A group is defined by a set of device selectors. A device belongs to the group if it matches any selector (logical OR).
This type is not used in any activity, and only used as part of another schema.
Fields§
§device_selectors: Option<Vec<DeviceSelector>>Device selectors for this group. A device matching any of the selectors is included in this group.
name: Option<String>The name of the group.
Trait Implementations§
Source§impl Clone for DeviceGroup
impl Clone for DeviceGroup
Source§fn clone(&self) -> DeviceGroup
fn clone(&self) -> DeviceGroup
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 DeviceGroup
impl Debug for DeviceGroup
Source§impl Default for DeviceGroup
impl Default for DeviceGroup
Source§fn default() -> DeviceGroup
fn default() -> DeviceGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceGroup
impl<'de> Deserialize<'de> for DeviceGroup
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 Serialize for DeviceGroup
impl Serialize for DeviceGroup
impl Part for DeviceGroup
Auto Trait Implementations§
impl Freeze for DeviceGroup
impl RefUnwindSafe for DeviceGroup
impl Send for DeviceGroup
impl Sync for DeviceGroup
impl Unpin for DeviceGroup
impl UnwindSafe for DeviceGroup
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