pub struct Query {
pub source: Option<SourceSelector>,
pub path: Option<PathFilter>,
pub filters: Vec<QueryComponent>,
pub range: Option<RangeSelector>,
}Expand description
A parsed query containing all components.
Fields§
§source: Option<SourceSelector>Source selector (host:type:client:session:)
path: Option<PathFilter>Working directory filter
filters: Vec<QueryComponent>Field filters and tags
range: Option<RangeSelector>Range selector (~N or ~N:~M)
Implementations§
Source§impl Query
impl Query
Sourcepub fn is_match_all(&self) -> bool
pub fn is_match_all(&self) -> bool
Check if this query matches everything (no filters applied).
Sourcepub fn is_all_sources(&self) -> bool
pub fn is_all_sources(&self) -> bool
Check if source selector is for all sources.
Trait Implementations§
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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