pub struct ViewAuthorizationContext<'a> {
pub roles: &'a dyn RoleCatalogGuards,
}Fields§
§roles: &'a dyn RoleCatalogGuardsImplementations§
Source§impl ViewAuthorizationContext<'_>
impl ViewAuthorizationContext<'_>
pub fn ensure_view_privilege_for( &self, name: &str, view: &StoredView, subject: &str, privilege: TableAclPrivilege, ) -> Result<(), SQLError>
pub fn ensure_view_column_privilege_for( &self, name: &str, view: &StoredView, column: &str, subject: &str, privilege: TableAclPrivilege, ) -> Result<(), SQLError>
pub fn ensure_any_view_column_privilege_for( &self, name: &str, view: &StoredView, subject: &str, privilege: TableAclPrivilege, ) -> Result<(), SQLError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ViewAuthorizationContext<'a>
impl<'a> !Send for ViewAuthorizationContext<'a>
impl<'a> !Sync for ViewAuthorizationContext<'a>
impl<'a> !UnwindSafe for ViewAuthorizationContext<'a>
impl<'a> Freeze for ViewAuthorizationContext<'a>
impl<'a> Unpin for ViewAuthorizationContext<'a>
impl<'a> UnsafeUnpin for ViewAuthorizationContext<'a>
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
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