pub struct Query {
pub kind_filter: Option<String>,
pub tag_filter: Vec<String>,
pub limit: Option<usize>,
pub offset: usize,
}Expand description
A composable filter + pagination descriptor for store queries.
Build via the fluent API:
let q = Query::new()
.kind("Atom::Source")
.tag("layer:domain")
.limit(20)
.offset(40);Fields§
§kind_filter: Option<String>If set, only return entities whose kind string matches this value.
tag_filter: Vec<String>All listed tags must be present on the entity (AND semantics).
limit: Option<usize>Maximum number of items to return. None means no limit.
offset: usizeNumber of matching items to skip before returning results.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin 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