pub struct BoundDatabaseSecurity {
pub role_owner: RoleIdentity,
pub acl: Option<Vec<BoundDatabaseAclEntry>>,
}Fields§
§role_owner: RoleIdentity§acl: Option<Vec<BoundDatabaseAclEntry>>Implementations§
Source§impl BoundDatabaseSecurity
impl BoundDatabaseSecurity
pub fn bootstrap() -> Self
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<Self, 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§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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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>,
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