pub enum ResolvedScope {
Column(String),
Unscoped,
TenantOrSession {
tenant: String,
session: String,
},
TenantOrBase {
tenant: String,
},
}Expand description
The effective, host-resolved scope for one table (from TenancySchema::resolve) — the input
the ORM scope-injector needs per table reference. None from resolve means refused
(undeclared — deny-by-default); this enum is only the declared outcomes.
Variants§
Column(String)
Scope this table on column = the resolved tenant (the injector picks the mode/value).
Unscoped
No tenant predicate — a globally-readable Unscoped table.
TenantOrSession
The R3 anonymous-first disjunction: a read is Or([tenant = <Tenant fact>, session = <Session fact>]) over whichever axis facts are present; a write stamps the actor’s own axis
(tenant if authenticated, else session, with the other column left NULL).
Fields
TenantOrBase
A base-inclusive table (TableScope::TenantOrBase): a READ confines to
(tenant = <resolved> OR tenant IS NULL) (the NULL rows are shared base, folded in on both
the own and target axes regardless of the field mode); a WRITE stamps tenant = <resolved>
exactly like Column (never a NULL-base row).
Trait Implementations§
Source§impl Clone for ResolvedScope
impl Clone for ResolvedScope
Source§fn clone(&self) -> ResolvedScope
fn clone(&self) -> ResolvedScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResolvedScope
impl Debug for ResolvedScope
impl Eq for ResolvedScope
Source§impl PartialEq for ResolvedScope
impl PartialEq for ResolvedScope
impl StructuralPartialEq for ResolvedScope
Auto Trait Implementations§
impl Freeze for ResolvedScope
impl RefUnwindSafe for ResolvedScope
impl Send for ResolvedScope
impl Sync for ResolvedScope
impl Unpin for ResolvedScope
impl UnsafeUnpin for ResolvedScope
impl UnwindSafe for ResolvedScope
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
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
key and return true if they are equal.