pub struct BoundTableSecurity {
pub role_owner: RoleIdentity,
pub acl: Option<Vec<BoundTableAclEntry>>,
pub column_acls: BTreeMap<String, Vec<BoundTableAclEntry>>,
pub acl_revisions: RelationAclRevisions,
}Fields§
§role_owner: RoleIdentity§acl: Option<Vec<BoundTableAclEntry>>§column_acls: BTreeMap<String, Vec<BoundTableAclEntry>>§acl_revisions: RelationAclRevisionsImplementations§
Source§impl BoundTableSecurity
impl BoundTableSecurity
pub fn remove_column_acl(&mut self, column: &str)
pub fn rename_column_acl(&mut self, from: &str, to: &str)
pub fn from_row(row: BoundRelationSecurity) -> Self
pub fn row(&self) -> BoundRelationSecurity
pub fn owner(role_owner: RoleIdentity) -> Self
pub fn owner_reference( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<RoleReference, SQLError>
pub fn bind( security: &TableSecurity, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<Self, String>
Sourcepub fn resolve(
&self,
roles: &BTreeMap<String, RoleDefinition>,
) -> Result<TableSecurity, String>
pub fn resolve( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<TableSecurity, String>
Resolve names only from the role view accompanying this security snapshot.
pub fn validate( &self, columns: Option<&[String]>, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<(), String>
pub fn depends_on(&self, role: RoleIdentity) -> bool
Trait Implementations§
Source§impl Clone for BoundTableSecurity
impl Clone for BoundTableSecurity
Source§impl Debug for BoundTableSecurity
impl Debug for BoundTableSecurity
impl Eq for BoundTableSecurity
Source§impl PartialEq for BoundTableSecurity
impl PartialEq for BoundTableSecurity
impl StructuralPartialEq for BoundTableSecurity
Auto Trait Implementations§
impl Freeze for BoundTableSecurity
impl RefUnwindSafe for BoundTableSecurity
impl Send for BoundTableSecurity
impl Sync for BoundTableSecurity
impl Unpin for BoundTableSecurity
impl UnsafeUnpin for BoundTableSecurity
impl UnwindSafe for BoundTableSecurity
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> ErasedDestructor for Twhere
T: 'static,
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