pub struct ParsedWhere {
pub clauses: Vec<ParsedClause>,
}Expand description
A parsed where document: a conjunction of clauses.
Fields§
§clauses: Vec<ParsedClause>Implementations§
Source§impl ParsedWhere
impl ParsedWhere
pub fn is_empty(&self) -> bool
Sourcepub fn field_keys(&self) -> Vec<String>
pub fn field_keys(&self) -> Vec<String>
Every field key named anywhere in the tree, including inside logical clauses.
Used by denyProtectedFields, which recurses into $or/$and/$nor
(RestQuery.js:956-967).
Sourcepub fn pinned_object_id(&self) -> Option<&str>
pub fn pinned_object_id(&self) -> Option<&str>
The objectId this query is pinned to, if it is pinned by a top-level equality.
Upstream reads query.objectId directly (DatabaseController.js:1838), which is a string
only for the shorthand equality form. Deliberately does not look inside a logical clause:
inside an $or no such pinning exists.
pub fn push(&mut self, clause: ParsedClause)
Trait Implementations§
Source§impl Clone for ParsedWhere
impl Clone for ParsedWhere
Source§fn clone(&self) -> ParsedWhere
fn clone(&self) -> ParsedWhere
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedWhere
impl Debug for ParsedWhere
Source§impl Default for ParsedWhere
impl Default for ParsedWhere
Source§fn default() -> ParsedWhere
fn default() -> ParsedWhere
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedWhere
impl RefUnwindSafe for ParsedWhere
impl Send for ParsedWhere
impl Sync for ParsedWhere
impl Unpin for ParsedWhere
impl UnsafeUnpin for ParsedWhere
impl UnwindSafe for ParsedWhere
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