pub struct TenantConfigBuilder { /* private fields */ }Expand description
Builder for TenantConfig
Implementations§
Source§impl TenantConfigBuilder
impl TenantConfigBuilder
Sourcepub fn isolation(self, strategy: IsolationStrategy) -> Self
pub fn isolation(self, strategy: IsolationStrategy) -> Self
Set isolation strategy
Sourcepub fn database_isolation(self, database: impl Into<String>) -> Self
pub fn database_isolation(self, database: impl Into<String>) -> Self
Set database isolation
Sourcepub fn schema_isolation(
self,
database: impl Into<String>,
schema: impl Into<String>,
) -> Self
pub fn schema_isolation( self, database: impl Into<String>, schema: impl Into<String>, ) -> Self
Set schema isolation
Sourcepub fn row_isolation(
self,
database: impl Into<String>,
column: impl Into<String>,
) -> Self
pub fn row_isolation( self, database: impl Into<String>, column: impl Into<String>, ) -> Self
Set row-level isolation
Sourcepub fn branch_isolation(self, branch: impl Into<String>) -> Self
pub fn branch_isolation(self, branch: impl Into<String>) -> Self
Set branch isolation
Sourcepub fn rate_limits(self, limits: TenantRateLimits) -> Self
pub fn rate_limits(self, limits: TenantRateLimits) -> Self
Set rate limits
Sourcepub fn max_connections(self, max: u32) -> Self
pub fn max_connections(self, max: u32) -> Self
Set max connections
Sourcepub fn pool(self, config: TenantPoolConfig) -> Self
pub fn pool(self, config: TenantPoolConfig) -> Self
Set pool configuration
Sourcepub fn permissions(self, perms: TenantPermissions) -> Self
pub fn permissions(self, perms: TenantPermissions) -> Self
Set permissions
Sourcepub fn ai_config(self, config: TenantAiConfig) -> Self
pub fn ai_config(self, config: TenantAiConfig) -> Self
Set AI configuration
Sourcepub fn build(self) -> TenantConfig
pub fn build(self) -> TenantConfig
Build the TenantConfig
Trait Implementations§
Source§impl Debug for TenantConfigBuilder
impl Debug for TenantConfigBuilder
Source§impl Default for TenantConfigBuilder
impl Default for TenantConfigBuilder
Source§fn default() -> TenantConfigBuilder
fn default() -> TenantConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TenantConfigBuilder
impl RefUnwindSafe for TenantConfigBuilder
impl Send for TenantConfigBuilder
impl Sync for TenantConfigBuilder
impl Unpin for TenantConfigBuilder
impl UnsafeUnpin for TenantConfigBuilder
impl UnwindSafe for TenantConfigBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more