pub struct BoundSequenceSecurity {
pub role_owner: RoleIdentity,
pub acl: Option<Vec<BoundSequenceAclEntry>>,
}Fields§
§role_owner: RoleIdentity§acl: Option<Vec<BoundSequenceAclEntry>>Implementations§
Source§impl BoundSequenceSecurity
impl BoundSequenceSecurity
pub fn from_row(row: BoundSequenceSecurity) -> Self
pub fn row(&self) -> BoundSequenceSecurity
pub fn owner(role_owner: RoleIdentity) -> Self
pub fn owner_reference( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<RoleReference, SQLError>
pub fn bind( security: &SequenceSecurity, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<Self, String>
Sourcepub fn resolve(
&self,
roles: &BTreeMap<String, RoleDefinition>,
) -> Result<SequenceSecurity, String>
pub fn resolve( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<SequenceSecurity, String>
Resolve display names only through the role view accompanying this authority snapshot.
pub fn validate( &self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<(), String>
pub fn depends_on(&self, role: RoleIdentity) -> bool
Trait Implementations§
Source§impl Clone for BoundSequenceSecurity
impl Clone for BoundSequenceSecurity
Source§impl Debug for BoundSequenceSecurity
impl Debug for BoundSequenceSecurity
impl Eq for BoundSequenceSecurity
Source§impl PartialEq for BoundSequenceSecurity
impl PartialEq for BoundSequenceSecurity
impl StructuralPartialEq for BoundSequenceSecurity
Auto Trait Implementations§
impl Freeze for BoundSequenceSecurity
impl RefUnwindSafe for BoundSequenceSecurity
impl Send for BoundSequenceSecurity
impl Sync for BoundSequenceSecurity
impl Unpin for BoundSequenceSecurity
impl UnsafeUnpin for BoundSequenceSecurity
impl UnwindSafe for BoundSequenceSecurity
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