pub struct ProtectedFieldPlan {
pub strip: Vec<String>,
pub user_field_rules: Vec<(String, Vec<String>)>,
}Expand description
The fields to strip from a result, plus the rules that can only be evaluated against a row.
Entirely request state. Nothing derived from a request is ever written back into the schema
snapshot, which is the deliberate divergence from upstream’s temporaryKeys
(DatabaseController.js:1907): that writes into the CLP object held by the shared schema
controller, so two concurrent requests corrupt each other’s key list in both directions.
Fields§
§strip: Vec<String>Already intersected across every applicable entity.
user_field_rules: Vec<(String, Vec<String>)>userField:<name> rules: the field to look at, and what it protects when the row’s value
points at the caller.
Implementations§
Trait Implementations§
Source§impl Clone for ProtectedFieldPlan
impl Clone for ProtectedFieldPlan
Source§fn clone(&self) -> ProtectedFieldPlan
fn clone(&self) -> ProtectedFieldPlan
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 ProtectedFieldPlan
impl Debug for ProtectedFieldPlan
Source§impl Default for ProtectedFieldPlan
impl Default for ProtectedFieldPlan
Source§fn default() -> ProtectedFieldPlan
fn default() -> ProtectedFieldPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProtectedFieldPlan
impl RefUnwindSafe for ProtectedFieldPlan
impl Send for ProtectedFieldPlan
impl Sync for ProtectedFieldPlan
impl Unpin for ProtectedFieldPlan
impl UnsafeUnpin for ProtectedFieldPlan
impl UnwindSafe for ProtectedFieldPlan
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