#[non_exhaustive]pub struct MonitorState {
pub groups: Option<BTreeMap<String, MonitorStateGroup>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Wrapper object with the different monitor states.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.groups: Option<BTreeMap<String, MonitorStateGroup>>
Dictionary where the keys are groups (comma separated lists of tags) and the values are the list of groups your monitor is broken down on.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl MonitorState
impl MonitorState
pub fn new() -> MonitorState
pub fn groups(self, value: BTreeMap<String, MonitorStateGroup>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for MonitorState
impl Clone for MonitorState
Source§fn clone(&self) -> MonitorState
fn clone(&self) -> MonitorState
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 MonitorState
impl Debug for MonitorState
Source§impl Default for MonitorState
impl Default for MonitorState
Source§impl<'de> Deserialize<'de> for MonitorState
impl<'de> Deserialize<'de> for MonitorState
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 MonitorState
impl PartialEq for MonitorState
Source§impl Serialize for MonitorState
impl Serialize for MonitorState
impl StructuralPartialEq for MonitorState
Auto Trait Implementations§
impl Freeze for MonitorState
impl RefUnwindSafe for MonitorState
impl Send for MonitorState
impl Sync for MonitorState
impl Unpin for MonitorState
impl UnwindSafe for MonitorState
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