pub struct DefaultPrivilegeChange {
pub target_role: Identifier,
pub schema: Option<Identifier>,
pub object_type: DefaultPrivObjectType,
pub is_grant: bool,
pub grant: Grant,
}Expand description
One ADD or REVOKE step for a default-privilege rule.
Fields§
§target_role: IdentifierFOR ROLE x — the grantor role this rule targets.
schema: Option<Identifier>IN SCHEMA y — schema scope. None = global scope.
object_type: DefaultPrivObjectTypeObject-type discriminant.
is_grant: booltrue = GRANT, false = REVOKE.
grant: GrantThe specific grant being added or revoked.
Trait Implementations§
Source§impl Clone for DefaultPrivilegeChange
impl Clone for DefaultPrivilegeChange
Source§fn clone(&self) -> DefaultPrivilegeChange
fn clone(&self) -> DefaultPrivilegeChange
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 DefaultPrivilegeChange
impl Debug for DefaultPrivilegeChange
impl Eq for DefaultPrivilegeChange
Source§impl PartialEq for DefaultPrivilegeChange
impl PartialEq for DefaultPrivilegeChange
Source§fn eq(&self, other: &DefaultPrivilegeChange) -> bool
fn eq(&self, other: &DefaultPrivilegeChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefaultPrivilegeChange
Auto Trait Implementations§
impl Freeze for DefaultPrivilegeChange
impl RefUnwindSafe for DefaultPrivilegeChange
impl Send for DefaultPrivilegeChange
impl Sync for DefaultPrivilegeChange
impl Unpin for DefaultPrivilegeChange
impl UnsafeUnpin for DefaultPrivilegeChange
impl UnwindSafe for DefaultPrivilegeChange
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<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