pub struct GrantRole {
pub roles: Vec<Ident>,
pub grantees: Vec<Grantee>,
pub options: Vec<RoleGrantOption>,
pub granted_by: Option<Ident>,
}Expand description
GRANT role [, ...] TO grantee [, ...] [WITH option [, ...]] [GRANTED BY grantor]
See PostgreSQL
Fields§
§roles: Vec<Ident>Roles whose membership is granted.
grantees: Vec<Grantee>Roles receiving the membership.
options: Vec<RoleGrantOption>Options of the membership, from WITH.
granted_by: Option<Ident>Optional GRANTED BY identifier.
Trait Implementations§
impl Eq for GrantRole
Source§impl Ord for GrantRole
impl Ord for GrantRole
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 GrantRole
impl PartialOrd for GrantRole
impl StructuralPartialEq for GrantRole
Auto Trait Implementations§
impl Freeze for GrantRole
impl RefUnwindSafe for GrantRole
impl Send for GrantRole
impl Sync for GrantRole
impl Unpin for GrantRole
impl UnsafeUnpin for GrantRole
impl UnwindSafe for GrantRole
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