Enum sqlparser::ast::GrantObjects
source · [−]pub enum GrantObjects {
AllSequencesInSchema {
schemas: Vec<ObjectName>,
},
AllTablesInSchema {
schemas: Vec<ObjectName>,
},
Schemas(Vec<ObjectName>),
Sequences(Vec<ObjectName>),
Tables(Vec<ObjectName>),
}
Expand description
Objects on which privileges are granted in a GRANT statement.
Variants
AllSequencesInSchema
Fields
schemas: Vec<ObjectName>
Grant privileges on ALL SEQUENCES IN SCHEMA <schema_name> [, ...]
AllTablesInSchema
Fields
schemas: Vec<ObjectName>
Grant privileges on ALL TABLES IN SCHEMA <schema_name> [, ...]
Schemas(Vec<ObjectName>)
Grant privileges on specific schemas
Sequences(Vec<ObjectName>)
Grant privileges on specific sequences
Tables(Vec<ObjectName>)
Grant privileges on specific tables
Trait Implementations
sourceimpl Clone for GrantObjects
impl Clone for GrantObjects
sourcefn clone(&self) -> GrantObjects
fn clone(&self) -> GrantObjects
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GrantObjects
impl Debug for GrantObjects
sourceimpl Display for GrantObjects
impl Display for GrantObjects
sourceimpl Hash for GrantObjects
impl Hash for GrantObjects
sourceimpl PartialEq<GrantObjects> for GrantObjects
impl PartialEq<GrantObjects> for GrantObjects
sourcefn eq(&self, other: &GrantObjects) -> bool
fn eq(&self, other: &GrantObjects) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GrantObjects) -> bool
fn ne(&self, other: &GrantObjects) -> bool
This method tests for !=
.
impl Eq for GrantObjects
impl StructuralEq for GrantObjects
impl StructuralPartialEq for GrantObjects
Auto Trait Implementations
impl RefUnwindSafe for GrantObjects
impl Send for GrantObjects
impl Sync for GrantObjects
impl Unpin for GrantObjects
impl UnwindSafe for GrantObjects
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more