pub struct Grant {
pub privileges: Privileges,
pub objects: Option<GrantObjects>,
pub grantees: Vec<Grantee>,
pub with_grant_option: bool,
pub as_grantor: Option<Ident>,
pub granted_by: Option<Ident>,
pub current_grants: Option<CurrentGrantsKind>,
}Expand description
GRANT privileges ON objects TO grantees
Fields§
§privileges: PrivilegesPrivileges being granted.
objects: Option<GrantObjects>Optional objects the privileges apply to.
grantees: Vec<Grantee>List of grantees receiving the privileges.
with_grant_option: boolWhether WITH GRANT OPTION is present.
as_grantor: Option<Ident>Optional AS GRANTOR identifier.
granted_by: Option<Ident>Optional GRANTED BY identifier.
current_grants: Option<CurrentGrantsKind>Optional CURRENT GRANTS modifier.
Trait Implementations§
Source§impl Ord for Grant
impl Ord for Grant
Source§impl PartialOrd for Grant
impl PartialOrd for Grant
Source§impl VisitMut for Grant
impl VisitMut for Grant
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for Grant
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