pub struct LabelFilter {
pub key: String,
pub value: Option<String>,
pub value_in: Option<Vec<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.
value_in: Option<Vec<String>>An optional set of values of the label to filter by, entities with any of the values will match.
Takes precedence over value, an empty set matches nothing.
Trait Implementations§
Source§impl Clone for LabelFilter
impl Clone for LabelFilter
Source§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
Source§impl From<LabelFilter> for LabelFilter
impl From<LabelFilter> for LabelFilter
Source§fn from(value: LabelFilter) -> Self
fn from(value: LabelFilter) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LabelFilter
impl RefUnwindSafe for LabelFilter
impl Send for LabelFilter
impl Sync for LabelFilter
impl Unpin for LabelFilter
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request