pub struct LabelPredicate {
pub name: String,
pub matcher: Option<(MatchOp, String)>,
}Expand description
One drop/keep item: a label name, optionally gated by a matcher
(method="GET", app=~"api.*").
Fields§
§name: String§matcher: Option<(MatchOp, String)>The matcher operator and value, when the item is name op "value"
rather than a bare label name.
Trait Implementations§
Source§impl Clone for LabelPredicate
impl Clone for LabelPredicate
Source§impl Debug for LabelPredicate
impl Debug for LabelPredicate
Source§impl PartialEq for LabelPredicate
impl PartialEq for LabelPredicate
impl StructuralPartialEq for LabelPredicate
Auto Trait Implementations§
impl Freeze for LabelPredicate
impl RefUnwindSafe for LabelPredicate
impl Send for LabelPredicate
impl Sync for LabelPredicate
impl Unpin for LabelPredicate
impl UnsafeUnpin for LabelPredicate
impl UnwindSafe for LabelPredicate
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