pub enum TenancyModeConfig {
None,
Row,
Schema,
}Expand description
Tenancy isolation mode from fraiseql.toml.
Determines how tenant data is separated at the database level.
Variants§
None
Single-tenant deployment, no isolation machinery.
Row
Row-level isolation via @tenant_id column injection.
Schema
Schema-level isolation via PostgreSQL schemas.
Trait Implementations§
Source§impl Clone for TenancyModeConfig
impl Clone for TenancyModeConfig
Source§fn clone(&self) -> TenancyModeConfig
fn clone(&self) -> TenancyModeConfig
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 TenancyModeConfig
impl Debug for TenancyModeConfig
Source§impl Default for TenancyModeConfig
impl Default for TenancyModeConfig
Source§fn default() -> TenancyModeConfig
fn default() -> TenancyModeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TenancyModeConfig
impl<'de> Deserialize<'de> for TenancyModeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TenancyModeConfig
impl RefUnwindSafe for TenancyModeConfig
impl Send for TenancyModeConfig
impl Sync for TenancyModeConfig
impl Unpin for TenancyModeConfig
impl UnsafeUnpin for TenancyModeConfig
impl UnwindSafe for TenancyModeConfig
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