pub enum TenantSource {
SessionVar(String),
SessionContext(String),
Function(String),
}Expand description
Source of current tenant ID.
Variants§
SessionVar(String)
PostgreSQL session variable: current_setting(‘app.tenant_id’).
SessionContext(String)
MSSQL session context: SESSION_CONTEXT(‘tenant_id’).
Function(String)
Custom function call.
Trait Implementations§
Source§impl Clone for TenantSource
impl Clone for TenantSource
Source§fn clone(&self) -> TenantSource
fn clone(&self) -> TenantSource
Returns a duplicate of the value. Read more
1.0.0 · 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 TenantSource
impl Debug for TenantSource
Source§impl<'de> Deserialize<'de> for TenantSource
impl<'de> Deserialize<'de> for TenantSource
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
Source§impl PartialEq for TenantSource
impl PartialEq for TenantSource
Source§impl Serialize for TenantSource
impl Serialize for TenantSource
impl Eq for TenantSource
impl StructuralPartialEq for TenantSource
Auto Trait Implementations§
impl Freeze for TenantSource
impl RefUnwindSafe for TenantSource
impl Send for TenantSource
impl Sync for TenantSource
impl Unpin for TenantSource
impl UnwindSafe for TenantSource
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