pub enum IcingaCommandArgumentDescription {
String(String),
Function(IcingaFunction),
FullDescription {
description: Option<String>,
value: Option<String>,
key: Option<String>,
skip_key: Option<bool>,
repeat_key: Option<bool>,
set_if: Option<IcingaArgumentCondition>,
required: Option<bool>,
order: Option<u64>,
separator: Option<String>,
},
}
Expand description
the description of a single command argument
Variants§
String(String)
a simple string with the argument(s)
Function(IcingaFunction)
an icinga function
FullDescription
a full description with details
Fields
§
set_if: Option<IcingaArgumentCondition>
condition when to set it
Trait Implementations§
Source§impl Clone for IcingaCommandArgumentDescription
impl Clone for IcingaCommandArgumentDescription
Source§fn clone(&self) -> IcingaCommandArgumentDescription
fn clone(&self) -> IcingaCommandArgumentDescription
Returns a copy 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<'de> Deserialize<'de> for IcingaCommandArgumentDescription
impl<'de> Deserialize<'de> for IcingaCommandArgumentDescription
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 Ord for IcingaCommandArgumentDescription
impl Ord for IcingaCommandArgumentDescription
Source§fn cmp(&self, other: &IcingaCommandArgumentDescription) -> Ordering
fn cmp(&self, other: &IcingaCommandArgumentDescription) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IcingaCommandArgumentDescription
impl PartialEq for IcingaCommandArgumentDescription
Source§fn eq(&self, other: &IcingaCommandArgumentDescription) -> bool
fn eq(&self, other: &IcingaCommandArgumentDescription) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for IcingaCommandArgumentDescription
impl PartialOrd for IcingaCommandArgumentDescription
impl Eq for IcingaCommandArgumentDescription
impl StructuralPartialEq for IcingaCommandArgumentDescription
Auto Trait Implementations§
impl Freeze for IcingaCommandArgumentDescription
impl RefUnwindSafe for IcingaCommandArgumentDescription
impl Send for IcingaCommandArgumentDescription
impl Sync for IcingaCommandArgumentDescription
impl Unpin for IcingaCommandArgumentDescription
impl UnwindSafe for IcingaCommandArgumentDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.