pub struct BoundSchemaSecurity {
pub tuple: Option<SchemaTupleIdentity>,
pub role_owner: RoleIdentity,
pub acl: Option<Vec<BoundAclEntry<SchemaPrivileges>>>,
}Fields§
§tuple: Option<SchemaTupleIdentity>§role_owner: RoleIdentity§acl: Option<Vec<BoundAclEntry<SchemaPrivileges>>>Implementations§
Source§impl BoundSchemaSecurity
impl BoundSchemaSecurity
pub const BUILTIN_NAMES: [&'static str; 3]
Sourcepub fn initial_catalog() -> BTreeMap<String, Self>
pub fn initial_catalog() -> BTreeMap<String, Self>
The initial namespace authority shared by memory and durable catalogs.
pub fn builtin(name: &str) -> Option<Self>
pub fn namespace_oid(&self, name: &str) -> i64
pub fn owner(role_owner: RoleIdentity) -> Self
pub fn bootstrap(name: &str) -> Self
Sourcepub fn bootstrap_with_oid(name: &str, oid: u32) -> Self
pub fn bootstrap_with_oid(name: &str, oid: u32) -> Self
A bootstrap schema whose namespace took oid, as a graph’s schema takes the OID its creation allocated.
pub fn with_public_privileges(create: bool) -> Self
pub fn bind( security: &SchemaSecurity, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<Self, String>
pub fn resolve( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<SchemaSecurity, String>
pub fn validate( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<(), String>
pub fn depends_on(&self, role: RoleIdentity) -> bool
pub fn from_row(row: BoundSchemaRow) -> (String, Self)
pub fn row(&self, name: impl Into<String>) -> BoundSchemaRow
Trait Implementations§
Source§impl Clone for BoundSchemaSecurity
impl Clone for BoundSchemaSecurity
Source§impl Debug for BoundSchemaSecurity
impl Debug for BoundSchemaSecurity
impl Eq for BoundSchemaSecurity
Source§impl PartialEq for BoundSchemaSecurity
impl PartialEq for BoundSchemaSecurity
impl StructuralPartialEq for BoundSchemaSecurity
Auto Trait Implementations§
impl Freeze for BoundSchemaSecurity
impl RefUnwindSafe for BoundSchemaSecurity
impl Send for BoundSchemaSecurity
impl Sync for BoundSchemaSecurity
impl Unpin for BoundSchemaSecurity
impl UnsafeUnpin for BoundSchemaSecurity
impl UnwindSafe for BoundSchemaSecurity
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