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, BoundSchemaSecurity>
pub fn initial_catalog() -> BTreeMap<String, BoundSchemaSecurity>
The initial namespace authority shared by memory and durable catalogs.
pub fn builtin(name: &str) -> Option<BoundSchemaSecurity>
pub fn namespace_oid(&self, name: &str) -> i64
pub fn owner(role_owner: RoleIdentity) -> BoundSchemaSecurity
pub fn bootstrap(name: &str) -> BoundSchemaSecurity
Sourcepub fn bootstrap_with_oid(name: &str, oid: u32) -> BoundSchemaSecurity
pub fn bootstrap_with_oid(name: &str, oid: u32) -> BoundSchemaSecurity
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) -> BoundSchemaSecurity
pub fn bind( security: &SchemaSecurity, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<BoundSchemaSecurity, 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, BoundSchemaSecurity)
pub fn row(&self, name: impl Into<String>) -> BoundSchemaRow
Trait Implementations§
Source§impl Clone for BoundSchemaSecurity
impl Clone for BoundSchemaSecurity
Source§fn clone(&self) -> BoundSchemaSecurity
fn clone(&self) -> BoundSchemaSecurity
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 BoundSchemaSecurity
impl Debug for BoundSchemaSecurity
impl Eq for BoundSchemaSecurity
Source§impl<'a> From<&'a BoundSchemaSecurity> for SchemaPrivilegeView<'a>
impl<'a> From<&'a BoundSchemaSecurity> for SchemaPrivilegeView<'a>
Source§fn from(security: &'a BoundSchemaSecurity) -> SchemaPrivilegeView<'a>
fn from(security: &'a BoundSchemaSecurity) -> SchemaPrivilegeView<'a>
Converts to this type from the input type.
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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