pub struct RoleDropAuthority { /* private fields */ }Expand description
Initial CREATEROLE authority is checked once; each later target uses the current membership graph after preceding removals.
Implementations§
Source§impl RoleDropAuthority
impl RoleDropAuthority
pub fn new( current: RoleReference, session: RoleReference, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<Self, SQLError>
Sourcepub fn resolve_target(
&self,
context: &RoleValidationContext<'_>,
requested: &RoleSpecification,
if_exists: bool,
roles: &BTreeMap<String, RoleDefinition>,
) -> Result<Option<RoleBinding>, SQLError>
pub fn resolve_target( &self, context: &RoleValidationContext<'_>, requested: &RoleSpecification, if_exists: bool, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<Option<RoleBinding>, SQLError>
Resolve only the next target. Execution must finish its object wait and remove its memberships before requesting another target.
Auto Trait Implementations§
impl Freeze for RoleDropAuthority
impl RefUnwindSafe for RoleDropAuthority
impl Send for RoleDropAuthority
impl Sync for RoleDropAuthority
impl Unpin for RoleDropAuthority
impl UnsafeUnpin for RoleDropAuthority
impl UnwindSafe for RoleDropAuthority
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
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