pub struct RlsConfig {
pub default_role: Option<String>,
pub super_admin_role: Option<String>,
}Expand description
[postgres.rls] — RLS default settings.
Fields§
§default_role: Option<String>Postgres role used for application connections.
super_admin_role: Option<String>Role name that bypasses RLS.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RlsConfig
impl<'de> Deserialize<'de> for RlsConfig
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 RlsConfig
impl RefUnwindSafe for RlsConfig
impl Send for RlsConfig
impl Sync for RlsConfig
impl Unpin for RlsConfig
impl UnsafeUnpin for RlsConfig
impl UnwindSafe for RlsConfig
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