pub struct DeviceTier {
pub device_group_names: Option<Vec<String>>,
pub level: Option<i32>,
}Expand description
A single device tier. Devices matching any of the device groups in device_group_names are considered to match the tier.
This type is not used in any activity, and only used as part of another schema.
Fields§
§device_group_names: Option<Vec<String>>Groups of devices included in this tier. These groups must be defined explicitly under device_groups in this configuration.
level: Option<i32>The priority level of the tier. Tiers are evaluated in descending order of level: the highest level tier has the highest priority. The highest tier matching a given device is selected for that device. You should use a contiguous range of levels for your tiers in a tier set; tier levels in a tier set must be unique. For instance, if your tier set has 4 tiers (including the global fallback), you should define tiers 1, 2 and 3 in this configuration. Note: tier 0 is implicitly defined as a global fallback and selected for devices that don’t match any of the tiers explicitly defined here. You mustn’t define level 0 explicitly in this configuration.
Trait Implementations§
Source§impl Clone for DeviceTier
impl Clone for DeviceTier
Source§fn clone(&self) -> DeviceTier
fn clone(&self) -> DeviceTier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more