pub enum GateRole {
Plain,
RemoteRoot,
GatedRoot {
gate_column: String,
},
ScopedRoot {
audience_column: String,
},
GatedByDescendants,
}Expand description
How a synced table relates to the gate. Orthogonal to whether it carries a blob.
Variants§
Plain
Every row syncs unconditionally.
RemoteRoot
Every row syncs unconditionally, and blobs on the row or its descendants are Remote by construction.
GatedRoot
A gated root: a row syncs iff its boolean gate_column is true, and the
gate flows down declared foreign keys to descendant rows.
ScopedRoot
An audience root: NULL is Store, local is device-local, and every
other value is a canonical committed circle id.
GatedByDescendants
An always-shared ancestor kept alive by its gated subtree: a row syncs iff at least one foreign-key descendant table holds a surviving (kept) row referencing it. A marker only; the keep-children are inferred from the live foreign-key graph at gate-build time, never listed here.
Trait Implementations§
impl Eq for GateRole
impl StructuralPartialEq for GateRole
Auto Trait Implementations§
impl Freeze for GateRole
impl RefUnwindSafe for GateRole
impl Send for GateRole
impl Sync for GateRole
impl Unpin for GateRole
impl UnsafeUnpin for GateRole
impl UnwindSafe for GateRole
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.