pub struct RlsManagerBuilder { /* private fields */ }Expand description
Builder for RLS manager.
Implementations§
Source§impl RlsManagerBuilder
impl RlsManagerBuilder
Sourcepub fn tenant_column(self, column: impl Into<String>) -> Self
pub fn tenant_column(self, column: impl Into<String>) -> Self
Set the tenant column.
Sourcepub fn session_variable(self, var: impl Into<String>) -> Self
pub fn session_variable(self, var: impl Into<String>) -> Self
Set the session variable.
Sourcepub fn application_role(self, role: impl Into<String>) -> Self
pub fn application_role(self, role: impl Into<String>) -> Self
Set the application role.
Sourcepub fn policy_prefix(self, prefix: impl Into<String>) -> Self
pub fn policy_prefix(self, prefix: impl Into<String>) -> Self
Set policy prefix.
Sourcepub fn build(self) -> RlsManager
pub fn build(self) -> RlsManager
Build the manager.
Trait Implementations§
Source§impl Default for RlsManagerBuilder
impl Default for RlsManagerBuilder
Source§fn default() -> RlsManagerBuilder
fn default() -> RlsManagerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RlsManagerBuilder
impl RefUnwindSafe for RlsManagerBuilder
impl Send for RlsManagerBuilder
impl Sync for RlsManagerBuilder
impl Unpin for RlsManagerBuilder
impl UnwindSafe for RlsManagerBuilder
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