pub struct QueryResultObject<Obj> {
pub attrs: Obj,
pub meta: IcingaMetadata,
pub name: String,
pub object_type: IcingaObjectType,
}
Expand description
the result of an icinga query to a type without joins
Fields§
§attrs: Obj
dependency attributes
meta: IcingaMetadata
metadata, only contains data if the parameter meta contains one or more values
name: String
object name
object_type: IcingaObjectType
type of icinga object, should always be the one matching Obj
Trait Implementations§
Source§impl<Obj: Clone> Clone for QueryResultObject<Obj>
impl<Obj: Clone> Clone for QueryResultObject<Obj>
Source§fn clone(&self) -> QueryResultObject<Obj>
fn clone(&self) -> QueryResultObject<Obj>
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<Obj: Debug> Debug for QueryResultObject<Obj>
impl<Obj: Debug> Debug for QueryResultObject<Obj>
Source§impl<'de, Obj> Deserialize<'de> for QueryResultObject<Obj>where
Obj: Deserialize<'de>,
impl<'de, Obj> Deserialize<'de> for QueryResultObject<Obj>where
Obj: Deserialize<'de>,
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<Obj: Hash> Hash for QueryResultObject<Obj>
impl<Obj: Hash> Hash for QueryResultObject<Obj>
Source§impl<Obj: Ord> Ord for QueryResultObject<Obj>
impl<Obj: Ord> Ord for QueryResultObject<Obj>
Source§fn cmp(&self, other: &QueryResultObject<Obj>) -> Ordering
fn cmp(&self, other: &QueryResultObject<Obj>) -> 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<Obj: PartialEq> PartialEq for QueryResultObject<Obj>
impl<Obj: PartialEq> PartialEq for QueryResultObject<Obj>
Source§impl<Obj: PartialOrd> PartialOrd for QueryResultObject<Obj>
impl<Obj: PartialOrd> PartialOrd for QueryResultObject<Obj>
Source§impl<Obj> Serialize for QueryResultObject<Obj>where
Obj: Serialize,
impl<Obj> Serialize for QueryResultObject<Obj>where
Obj: Serialize,
impl<Obj: Eq> Eq for QueryResultObject<Obj>
impl<Obj> StructuralPartialEq for QueryResultObject<Obj>
Auto Trait Implementations§
impl<Obj> Freeze for QueryResultObject<Obj>where
Obj: Freeze,
impl<Obj> RefUnwindSafe for QueryResultObject<Obj>where
Obj: RefUnwindSafe,
impl<Obj> Send for QueryResultObject<Obj>where
Obj: Send,
impl<Obj> Sync for QueryResultObject<Obj>where
Obj: Sync,
impl<Obj> Unpin for QueryResultObject<Obj>where
Obj: Unpin,
impl<Obj> UnwindSafe for QueryResultObject<Obj>where
Obj: UnwindSafe,
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.