pub struct ClusterNotificationsCreateMatcherRequest {
pub comment: Option<String>,
pub disable: Option<PveBoolean>,
pub invert_match: Option<PveBoolean>,
pub match_calendar: Option<Vec<String>>,
pub match_field: Option<Vec<String>>,
pub match_severity: Option<Vec<String>>,
pub mode: Option<PveModeModeEnum>,
pub name: String,
pub target: Option<Vec<String>>,
}Fields§
§comment: Option<String>Comment
disable: Option<PveBoolean>Disable this matcher
invert_match: Option<PveBoolean>Invert match of the whole matcher
match_calendar: Option<Vec<String>>Match notification timestamp
match_field: Option<Vec<String>>Metadata fields to match (regex or exact match). Must be in the form (regex|exact):
match_severity: Option<Vec<String>>Notification severities to match
mode: Option<PveModeModeEnum>Choose between ‘all’ and ‘any’ for when multiple properties are specified
name: StringName of the matcher.
target: Option<Vec<String>>Targets to notify on match
Implementations§
Trait Implementations§
Source§impl Clone for ClusterNotificationsCreateMatcherRequest
impl Clone for ClusterNotificationsCreateMatcherRequest
Source§fn clone(&self) -> ClusterNotificationsCreateMatcherRequest
fn clone(&self) -> ClusterNotificationsCreateMatcherRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ClusterNotificationsCreateMatcherRequest
impl Default for ClusterNotificationsCreateMatcherRequest
Source§fn default() -> ClusterNotificationsCreateMatcherRequest
fn default() -> ClusterNotificationsCreateMatcherRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterNotificationsCreateMatcherRequest
impl<'de> Deserialize<'de> for ClusterNotificationsCreateMatcherRequest
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 ClusterNotificationsCreateMatcherRequest
impl PartialEq for ClusterNotificationsCreateMatcherRequest
Source§fn eq(&self, other: &ClusterNotificationsCreateMatcherRequest) -> bool
fn eq(&self, other: &ClusterNotificationsCreateMatcherRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterNotificationsCreateMatcherRequest
Auto Trait Implementations§
impl Freeze for ClusterNotificationsCreateMatcherRequest
impl RefUnwindSafe for ClusterNotificationsCreateMatcherRequest
impl Send for ClusterNotificationsCreateMatcherRequest
impl Sync for ClusterNotificationsCreateMatcherRequest
impl Unpin for ClusterNotificationsCreateMatcherRequest
impl UnsafeUnpin for ClusterNotificationsCreateMatcherRequest
impl UnwindSafe for ClusterNotificationsCreateMatcherRequest
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