[][src]Struct postgres_parser::nodes::GrantRoleStmt

pub struct GrantRoleStmt {
    pub granted_roles: Option<Vec<Node>>,
    pub grantee_roles: Option<Vec<Node>>,
    pub is_grant: bool,
    pub admin_opt: bool,
    pub grantor: Option<Box<RoleSpec>>,
    pub behavior: DropBehavior,
}

Grant/Revoke Role Statement

Note: because of the parsing ambiguity with the GRANT statement, granted_roles is a list of AccessPriv; the execution code should complain if any column lists appear. grantee_roles is a list of role names, as Value strings.

Fields

granted_roles: Option<Vec<Node>>grantee_roles: Option<Vec<Node>>is_grant: booladmin_opt: boolgrantor: Option<Box<RoleSpec>>behavior: DropBehavior

Trait Implementations

impl Debug for GrantRoleStmt[src]

impl<'de> Deserialize<'de> for GrantRoleStmt[src]

impl Eq for GrantRoleStmt[src]

impl PartialEq<GrantRoleStmt> for GrantRoleStmt[src]

impl Serialize for GrantRoleStmt[src]

impl StructuralEq for GrantRoleStmt[src]

impl StructuralPartialEq for GrantRoleStmt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.