pub enum GrantKind<'a> {
Privilege {
privileges: Vec<PrivilegeItem<'a>>,
on_span: Span,
object: GrantObject<'a>,
to_span: Span,
grantees: Vec<RoleSpec<'a>>,
with_grant_option: Option<Span>,
granted_by: Option<(Span, RoleSpec<'a>)>,
},
Role {
roles: Vec<QualifiedName<'a>>,
to_span: Span,
grantees: Vec<RoleSpec<'a>>,
with_option: Option<MembershipOption>,
granted_by: Option<(Span, RoleSpec<'a>)>,
},
}Expand description
The two top-level forms that GRANT can take.
Variants§
Privilege
GRANT privileges ON object TO grantees [WITH GRANT OPTION] [GRANTED BY role]
Role
GRANT role_name [, ...] TO role_spec [, ...] [WITH opt] [GRANTED BY role]
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GrantKind<'a>
impl<'a> RefUnwindSafe for GrantKind<'a>
impl<'a> Send for GrantKind<'a>
impl<'a> Sync for GrantKind<'a>
impl<'a> Unpin for GrantKind<'a>
impl<'a> UnsafeUnpin for GrantKind<'a>
impl<'a> UnwindSafe for GrantKind<'a>
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