pub struct Query {
pub folder: String,
pub filter: Option<Expr>,
pub select: Option<Vec<String>>,
pub sort: Option<SortKey>,
pub limit: Option<usize>,
pub recursive: bool,
}Expand description
A complete query: the root expression, optional projection, sort, limit, and the folder to scan.
Fields§
§folder: String§filter: Option<Expr>§select: Option<Vec<String>>None means “select all fields”.
sort: Option<SortKey>§limit: Option<usize>§recursive: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 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