pub struct TagQuery { /* private fields */ }Expand description
A parsed tag value query from a --val flag.
Format: [!][@]property operator value
Implementations§
Source§impl TagQuery
impl TagQuery
Sourcepub fn parse(input: &str) -> Option<Self>
pub fn parse(input: &str) -> Option<Self>
Parse a query string into a structured TagQuery.
Format: [!][@]property operator value
The @ prefix on the property name is optional and stripped during
parsing, so "project == clientA" and "@project == clientA" are
equivalent.
Operators: <, <=, >, >=, ==, =, !=, *=, ^=, $=
Sourcepub fn matches_entry(&self, entry: &Entry) -> bool
pub fn matches_entry(&self, entry: &Entry) -> bool
Test whether an entry matches this query.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagQuery
impl RefUnwindSafe for TagQuery
impl Send for TagQuery
impl Sync for TagQuery
impl Unpin for TagQuery
impl UnsafeUnpin for TagQuery
impl UnwindSafe for TagQuery
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