pub struct BoundDatabaseSecurity {
pub role_owner: RoleIdentity,
pub acl: Option<Vec<BoundAclEntry<DatabasePrivileges>>>,
}Fields§
§role_owner: RoleIdentity§acl: Option<Vec<BoundAclEntry<DatabasePrivileges>>>Implementations§
Source§impl BoundDatabaseSecurity
impl BoundDatabaseSecurity
pub fn bootstrap() -> BoundDatabaseSecurity
pub fn depends_on(&self, role: RoleIdentity) -> bool
pub fn validate( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<(), String>
pub fn bind( security: &DatabaseSecurity, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<BoundDatabaseSecurity, String>
Sourcepub fn resolve(
&self,
roles: &BTreeMap<String, RoleDefinition>,
) -> Result<DatabaseSecurity, String>
pub fn resolve( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<DatabaseSecurity, String>
Project current names without rewriting or rebinding the stored references.
Trait Implementations§
Source§impl Clone for BoundDatabaseSecurity
impl Clone for BoundDatabaseSecurity
Source§fn clone(&self) -> BoundDatabaseSecurity
fn clone(&self) -> BoundDatabaseSecurity
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 BoundDatabaseSecurity
impl Debug for BoundDatabaseSecurity
Source§impl<'de> Deserialize<'de> for BoundDatabaseSecurity
impl<'de> Deserialize<'de> for BoundDatabaseSecurity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoundDatabaseSecurity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BoundDatabaseSecurity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BoundDatabaseSecurity
Source§impl PartialEq for BoundDatabaseSecurity
impl PartialEq for BoundDatabaseSecurity
Source§impl Serialize for BoundDatabaseSecurity
impl Serialize for BoundDatabaseSecurity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BoundDatabaseSecurity
Auto Trait Implementations§
impl Freeze for BoundDatabaseSecurity
impl RefUnwindSafe for BoundDatabaseSecurity
impl Send for BoundDatabaseSecurity
impl Sync for BoundDatabaseSecurity
impl Unpin for BoundDatabaseSecurity
impl UnsafeUnpin for BoundDatabaseSecurity
impl UnwindSafe for BoundDatabaseSecurity
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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