pub struct RecordsQuery {Show 15 fields
pub from: Option<String>,
pub app: Option<String>,
pub mine: bool,
pub user: Option<String>,
pub where_: Vec<RecordsFilter>,
pub or: Vec<Vec<RecordsFilter>>,
pub sort: Vec<RecordsSortKey>,
pub limit: u32,
pub sum: Option<String>,
pub month: Option<RecordsMonthView>,
pub group: Vec<RecordsGroupKey>,
pub aggregate: Vec<RecordsAggregate>,
pub running: Vec<RecordsRunning>,
pub before: Option<RecordsBefore>,
pub expand: Vec<String>,
}Expand description
The structured query.
Fields§
§from: Option<String>The kind; None = no kind (the value is null).
app: Option<String>Another app’s slug (the HOST resolves whose rows); None = the hosting app.
mine: boolOnly the viewer’s rows (by author: authorId, else createdBy).
user: Option<String>Only this user’s rows (by author).
where_: Vec<RecordsFilter>Every condition holds; by field, then operator (the URL sugar).
or: Vec<Vec<RecordsFilter>>VAPP-190: one of these alternatives holds too (each: every condition).
sort: Vec<RecordsSortKey>Sort keys in order; ties always fall back to the id.
limit: u32§sum: Option<String>Σ of this field over the matches (before the limit).
month: Option<RecordsMonthView>§group: Vec<RecordsGroupKey>VAPP-190: the group-by keys.
aggregate: Vec<RecordsAggregate>VAPP-190: the aggregates, by name.
running: Vec<RecordsRunning>VAPP-190: the running values, by field.
before: Option<RecordsBefore>§expand: Vec<String>eApps R5 (VAPP-219): ref fields whose target is inlined into every
row (records.<kind>.refs, one level).
Trait Implementations§
Source§impl Clone for RecordsQuery
impl Clone for RecordsQuery
Source§impl Debug for RecordsQuery
impl Debug for RecordsQuery
Source§impl Default for RecordsQuery
impl Default for RecordsQuery
Source§impl<'de> Deserialize<'de> for RecordsQuery
impl<'de> Deserialize<'de> for RecordsQuery
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 Eq for RecordsQuery
Source§impl Hash for RecordsQuery
impl Hash for RecordsQuery
Source§impl PartialEq for RecordsQuery
impl PartialEq for RecordsQuery
Source§impl Serialize for RecordsQuery
impl Serialize for RecordsQuery
impl StructuralPartialEq for RecordsQuery
Auto Trait Implementations§
impl Freeze for RecordsQuery
impl RefUnwindSafe for RecordsQuery
impl Send for RecordsQuery
impl Sync for RecordsQuery
impl Unpin for RecordsQuery
impl UnsafeUnpin for RecordsQuery
impl UnwindSafe for RecordsQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.