pub struct GrantStatement {
pub privileges: Vec<GrantPriv>,
pub object: GrantObject,
pub grantees: Vec<String>,
pub grant_option: bool,
}Expand description
v7.39 (read01 round 57) — a parsed GRANT / REVOKE. The same shape serves
both; Statement::Grant vs Statement::Revoke says which way it runs.
Fields§
§privileges: Vec<GrantPriv>The privileges. EMPTY = ALL [PRIVILEGES]. In the role-membership shape
(GRANT devs TO alice, no ON clause) these words are ROLE NAMES, which
is why they keep the case the user typed.
object: GrantObjectWhat the privileges are on.
grantees: Vec<String>The roles granted to / revoked from. An empty string entry = PUBLIC.
grant_option: boolGRANT: a trailing WITH GRANT OPTION. REVOKE: a leading
GRANT OPTION FOR (revoke only the right to re-grant, keep the
privilege itself).
Trait Implementations§
Source§impl Clone for GrantStatement
impl Clone for GrantStatement
Source§fn clone(&self) -> GrantStatement
fn clone(&self) -> GrantStatement
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 GrantStatement
impl Debug for GrantStatement
impl Eq for GrantStatement
Source§impl PartialEq for GrantStatement
impl PartialEq for GrantStatement
impl StructuralPartialEq for GrantStatement
Auto Trait Implementations§
impl Freeze for GrantStatement
impl RefUnwindSafe for GrantStatement
impl Send for GrantStatement
impl Sync for GrantStatement
impl Unpin for GrantStatement
impl UnsafeUnpin for GrantStatement
impl UnwindSafe for GrantStatement
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