pub enum AlterDefaultPrivilegesOperation {
Grant {
privileges: Privileges,
object_type: DefaultPrivilegesObjectType,
grantees: Vec<Grantee>,
with_grant_option: bool,
},
Revoke {
grant_option_for: bool,
privileges: Privileges,
object_type: DefaultPrivilegesObjectType,
grantees: Vec<Grantee>,
cascade: Option<CascadeOption>,
},
}Expand description
The abbreviated GRANT or REVOKE of an AlterDefaultPrivileges, naming
an object type rather than named objects and so unable to reuse Grant.
Variants§
Grant
GRANT <privileges> ON <object_type> TO <grantees> [WITH GRANT OPTION]
Fields
§
privileges: PrivilegesThe privileges being granted.
§
object_type: DefaultPrivilegesObjectTypeThe kind of future object the privileges apply to.
Revoke
REVOKE [GRANT OPTION FOR] <privileges> ON <object_type> FROM <grantees> [CASCADE | RESTRICT]
Fields
§
privileges: PrivilegesThe privileges being revoked.
§
object_type: DefaultPrivilegesObjectTypeThe kind of future object the privileges apply to.
§
cascade: Option<CascadeOption>Optional CASCADE/RESTRICT behaviour.
Trait Implementations§
Source§impl Clone for AlterDefaultPrivilegesOperation
impl Clone for AlterDefaultPrivilegesOperation
Source§fn clone(&self) -> AlterDefaultPrivilegesOperation
fn clone(&self) -> AlterDefaultPrivilegesOperation
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 moreimpl Eq for AlterDefaultPrivilegesOperation
Source§impl Ord for AlterDefaultPrivilegesOperation
impl Ord for AlterDefaultPrivilegesOperation
Source§fn cmp(&self, other: &AlterDefaultPrivilegesOperation) -> Ordering
fn cmp(&self, other: &AlterDefaultPrivilegesOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for AlterDefaultPrivilegesOperation
impl PartialOrd for AlterDefaultPrivilegesOperation
impl StructuralPartialEq for AlterDefaultPrivilegesOperation
Auto Trait Implementations§
impl Freeze for AlterDefaultPrivilegesOperation
impl RefUnwindSafe for AlterDefaultPrivilegesOperation
impl Send for AlterDefaultPrivilegesOperation
impl Sync for AlterDefaultPrivilegesOperation
impl Unpin for AlterDefaultPrivilegesOperation
impl UnsafeUnpin for AlterDefaultPrivilegesOperation
impl UnwindSafe for AlterDefaultPrivilegesOperation
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