pub struct SecurityCatalog {
pub rls_tables: Vec<String>,
pub policies: Vec<RowPolicy>,
pub masks: Vec<ColumnMask>,
}Fields§
§rls_tables: Vec<String>§policies: Vec<RowPolicy>§masks: Vec<ColumnMask>Implementations§
Source§impl SecurityCatalog
impl SecurityCatalog
pub fn table_has_security(&self, table: &str) -> bool
pub fn table_has_objects(&self, table: &str) -> bool
pub fn rls_enabled(&self, table: &str) -> bool
pub fn row_allowed( &self, table: &str, command: PolicyCommand, row: &Row, principal: &Principal, check_new: bool, ) -> bool
pub fn apply_masks(&self, table: &str, row: &mut Row, principal: &Principal)
Trait Implementations§
Source§impl Clone for SecurityCatalog
impl Clone for SecurityCatalog
Source§fn clone(&self) -> SecurityCatalog
fn clone(&self) -> SecurityCatalog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityCatalog
impl Debug for SecurityCatalog
Source§impl Default for SecurityCatalog
impl Default for SecurityCatalog
Source§fn default() -> SecurityCatalog
fn default() -> SecurityCatalog
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecurityCatalog
impl<'de> Deserialize<'de> for SecurityCatalog
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 SecurityCatalog
impl PartialEq for SecurityCatalog
Source§impl Serialize for SecurityCatalog
impl Serialize for SecurityCatalog
impl StructuralPartialEq for SecurityCatalog
Auto Trait Implementations§
impl Freeze for SecurityCatalog
impl RefUnwindSafe for SecurityCatalog
impl Send for SecurityCatalog
impl Sync for SecurityCatalog
impl Unpin for SecurityCatalog
impl UnsafeUnpin for SecurityCatalog
impl UnwindSafe for SecurityCatalog
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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