pub struct RowSecurity {
pub on: Vec<String>,
pub off: Vec<String>,
pub unguarded: Vec<String>,
pub role_bypasses: bool,
}Expand description
Whether row-level security is on, table by table, in the storage’s schema.
See PostgresStorage::row_security.
Fields§
§on: Vec<String>Tables with the tenant policy where row-level security is on. It’s forced too, so it binds the tables’ owner.
off: Vec<String>Tables with the tenant policy where it’s off.
unguarded: Vec<String>Tables with a tenant_id column but no tenant policy. Switching
row-level security leaves them alone: nothing backs up their queries’
tenant filters.
role_bypasses: boolWhether this connection’s role skips row-level security whatever the
tables say: a superuser, or a role with BYPASSRLS.
Implementations§
Trait Implementations§
Source§impl Clone for RowSecurity
impl Clone for RowSecurity
Source§impl Debug for RowSecurity
impl Debug for RowSecurity
impl Eq for RowSecurity
Source§impl PartialEq for RowSecurity
impl PartialEq for RowSecurity
impl StructuralPartialEq for RowSecurity
Auto Trait Implementations§
impl Forget for RowSecurity
impl Freeze for RowSecurity
impl Move for RowSecurity
impl RefUnwindSafe for RowSecurity
impl Send for RowSecurity
impl Sync for RowSecurity
impl Unpin for RowSecurity
impl UnsafeUnpin for RowSecurity
impl UnwindSafe for RowSecurity
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