pub struct VectorMatch {
pub on: bool,
pub labels: Vec<String>,
pub grouped: bool,
}Expand description
An on (...) / ignoring (...) vector-matching clause. group_left /
group_right (many-to-one) are accepted by the parser but recorded as
flags only; matching is evaluated one-to-one.
Fields§
§on: booltrue for on (...) (match only these labels), false for
ignoring (...) (match on all labels except these).
labels: Vec<String>The labels named in the clause.
grouped: booltrue when a group_left / group_right modifier was present.
Trait Implementations§
Source§impl Clone for VectorMatch
impl Clone for VectorMatch
Source§fn clone(&self) -> VectorMatch
fn clone(&self) -> VectorMatch
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 VectorMatch
impl Debug for VectorMatch
impl Eq for VectorMatch
Source§impl PartialEq for VectorMatch
impl PartialEq for VectorMatch
impl StructuralPartialEq for VectorMatch
Auto Trait Implementations§
impl Freeze for VectorMatch
impl RefUnwindSafe for VectorMatch
impl Send for VectorMatch
impl Sync for VectorMatch
impl Unpin for VectorMatch
impl UnsafeUnpin for VectorMatch
impl UnwindSafe for VectorMatch
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