pub struct LabelFilter {
pub any_of: Vec<String>,
pub all_of: Vec<String>,
pub none_of: Vec<String>,
}Expand description
Label membership, by name rather than by id.
A label id is per-source; a user filtering across sources types a word. Names are matched case-insensitively for the same reason.
Fields§
§any_of: Vec<String>Keep an item carrying at least one of these.
all_of: Vec<String>Keep an item carrying all of these.
none_of: Vec<String>Drop an item carrying any of these.
Implementations§
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 (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 Debug for LabelFilter
impl Debug for LabelFilter
Source§impl Default for LabelFilter
impl Default for LabelFilter
Source§fn default() -> LabelFilter
fn default() -> LabelFilter
Returns the “default value” for a type. Read more
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 JsonSchema for LabelFilter
impl JsonSchema for LabelFilter
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LabelFilter
impl PartialEq for LabelFilter
Source§impl Serialize for LabelFilter
impl Serialize for LabelFilter
impl StructuralPartialEq for LabelFilter
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