pub struct RevokeRole {
pub option_for: Option<Ident>,
pub roles: Vec<Ident>,
pub grantees: Vec<Grantee>,
pub granted_by: Option<Ident>,
pub cascade: Option<CascadeOption>,
}Expand description
REVOKE [option OPTION FOR] role [, ...] FROM grantee [, ...] [GRANTED BY grantor] [CASCADE | RESTRICT]
See PostgreSQL
Fields§
§option_for: Option<Ident>The option named in OPTION FOR, such as ADMIN, withdrawn while the membership stays.
roles: Vec<Ident>Roles whose membership is revoked.
grantees: Vec<Grantee>Roles losing the membership.
granted_by: Option<Ident>Optional GRANTED BY identifier.
cascade: Option<CascadeOption>Optional CASCADE/RESTRICT behavior.
Trait Implementations§
Source§impl Clone for RevokeRole
impl Clone for RevokeRole
Source§fn clone(&self) -> RevokeRole
fn clone(&self) -> RevokeRole
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 RevokeRole
impl Debug for RevokeRole
Source§impl Display for RevokeRole
impl Display for RevokeRole
impl Eq for RevokeRole
Source§impl From<RevokeRole> for Statement
impl From<RevokeRole> for Statement
Source§fn from(v: RevokeRole) -> Self
fn from(v: RevokeRole) -> Self
Converts to this type from the input type.
Source§impl Hash for RevokeRole
impl Hash for RevokeRole
Source§impl Ord for RevokeRole
impl Ord for RevokeRole
Source§fn cmp(&self, other: &RevokeRole) -> Ordering
fn cmp(&self, other: &RevokeRole) -> 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 PartialEq for RevokeRole
impl PartialEq for RevokeRole
Source§impl PartialOrd for RevokeRole
impl PartialOrd for RevokeRole
impl StructuralPartialEq for RevokeRole
Auto Trait Implementations§
impl Freeze for RevokeRole
impl RefUnwindSafe for RevokeRole
impl Send for RevokeRole
impl Sync for RevokeRole
impl Unpin for RevokeRole
impl UnsafeUnpin for RevokeRole
impl UnwindSafe for RevokeRole
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