pub struct SchemaPrivilegeInquiry<'a> {
pub catalog: &'a dyn SchemaPrivilegeCatalog,
pub names: &'a dyn RoleReferenceNames,
pub roles: &'a dyn RoleCatalogGuards,
}Fields§
§catalog: &'a dyn SchemaPrivilegeCatalog§names: &'a dyn RoleReferenceNames§roles: &'a dyn RoleCatalogGuardsImplementations§
Source§impl SchemaPrivilegeInquiry<'_>
impl SchemaPrivilegeInquiry<'_>
pub fn schema_has_privilege_for_role( &self, schema: &str, role: &str, privilege: SchemaAclPrivilege, ) -> bool
pub fn schema_security_for_privilege( &self, schema: &str, ) -> Option<SchemaSecurity>
pub fn require_schema_privilege( &self, schema: &str, role: &str, privilege: SchemaAclPrivilege, ) -> Result<(), SQLError>
pub fn has_schema_privilege_value( &self, arguments: &[Value], ) -> Result<Value, SQLError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SchemaPrivilegeInquiry<'a>
impl<'a> !Send for SchemaPrivilegeInquiry<'a>
impl<'a> !Sync for SchemaPrivilegeInquiry<'a>
impl<'a> !UnwindSafe for SchemaPrivilegeInquiry<'a>
impl<'a> Freeze for SchemaPrivilegeInquiry<'a>
impl<'a> Unpin for SchemaPrivilegeInquiry<'a>
impl<'a> UnsafeUnpin for SchemaPrivilegeInquiry<'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