pub struct Grant {
pub action: GrantAction,
pub privileges: Vec<Privilege>,
pub on_object: String,
pub to_role: String,
}Expand description
GRANT or REVOKE permission.
Fields§
§action: GrantActionGRANT or REVOKE.
privileges: Vec<Privilege>Privileges being granted/revoked.
on_object: StringTarget object (table, schema, sequence).
to_role: StringRole receiving (or losing) the privileges.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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