pub enum Scope {
Always,
Links(Vec<String>),
}Expand description
Which groups a declared element is offered on when a user adds a sensor.
A custom element rarely makes sense everywhere: a mesh-routing stat belongs only on
a mesh node, while a quality-of-life detector a community wants on every node is
Always. This gates the add-sensor dialog so a profile’s element
appears only where it applies.
Variants§
Always
Offered on every group, whatever its link.
Links(Vec<String>)
Offered only on groups whose link kind is one of these, such as ["mesh"].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
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 Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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