pub enum LevelKeys {
Whole,
Without(Vec<String>),
Only {
kept: Vec<String>,
masked: Vec<String>,
},
}Expand description
Which keys of a stored document a composed level returns.
Variants§
Whole
The whole document. The root’s shape: it is projected afterwards exactly as a flat read of the same query is, so it reads what a flat read reads.
Without(Vec<String>)
The whole document, less these keys.
The root’s shape when some of its stored keys are embedded in their own place: the embedded value is the gated one, and the stored one — which the level’s predicate never filtered — does not leave the database.
Only
Only these keys, and these keys as null.
An embedded level’s shape. A key the caller may not see never leaves the
database: masked keys are written as SQL NULL, and a key in neither list is
not returned at all.
Trait Implementations§
impl Eq for LevelKeys
impl StructuralPartialEq for LevelKeys
Auto Trait Implementations§
impl Freeze for LevelKeys
impl RefUnwindSafe for LevelKeys
impl Send for LevelKeys
impl Sync for LevelKeys
impl Unpin for LevelKeys
impl UnsafeUnpin for LevelKeys
impl UnwindSafe for LevelKeys
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,
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.