pub struct LabelFilter {
pub key: String,
pub value: Option<String>,
}Expand description
A filter for labels.
Fields§
§key: StringThe key of the label to filter by.
value: Option<String>An optional value of the label to filter by, if not specified, entities with the given key and any value will match.
Trait Implementations§
Source§impl Clone for LabelFilter
impl Clone for LabelFilter
Source§fn clone(&self) -> LabelFilter
fn clone(&self) -> LabelFilter
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 LabelFilter
impl Debug for LabelFilter
Source§impl<'de> Deserialize<'de> for LabelFilter
impl<'de> Deserialize<'de> for LabelFilter
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
Auto Trait Implementations§
impl Freeze for LabelFilter
impl RefUnwindSafe for LabelFilter
impl Send for LabelFilter
impl Sync for LabelFilter
impl Unpin for LabelFilter
impl UnwindSafe for LabelFilter
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