Struct mz_sql_parser::ast::defs::statement::GrantPrivilegeStatement
source · pub struct GrantPrivilegeStatement<T: AstInfo> {
pub privileges: PrivilegeSpecification,
pub object_type: ObjectType,
pub name: T::ObjectName,
pub roles: Vec<T::RoleName>,
}
Expand description
GRANT ...
Fields§
§privileges: PrivilegeSpecification
The privileges being granted on an object.
object_type: ObjectType
The type of object.
Note: For views, materialized views, and sources this will be ObjectType::Table
.
name: T::ObjectName
The name of the object.
roles: Vec<T::RoleName>
The roles that will granted the privileges.
Trait Implementations§
source§impl<T: AstInfo> AstDisplay for GrantPrivilegeStatement<T>
impl<T: AstInfo> AstDisplay for GrantPrivilegeStatement<T>
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
fn to_ast_string(&self) -> String
fn to_ast_string_stable(&self) -> String
source§impl<T: Clone + AstInfo> Clone for GrantPrivilegeStatement<T>where
T::ObjectName: Clone,
T::RoleName: Clone,
impl<T: Clone + AstInfo> Clone for GrantPrivilegeStatement<T>where T::ObjectName: Clone, T::RoleName: Clone,
source§fn clone(&self) -> GrantPrivilegeStatement<T>
fn clone(&self) -> GrantPrivilegeStatement<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug + AstInfo> Debug for GrantPrivilegeStatement<T>where
T::ObjectName: Debug,
T::RoleName: Debug,
impl<T: Debug + AstInfo> Debug for GrantPrivilegeStatement<T>where T::ObjectName: Debug, T::RoleName: Debug,
source§impl<T: AstInfo> Display for GrantPrivilegeStatement<T>
impl<T: AstInfo> Display for GrantPrivilegeStatement<T>
source§impl<T: Hash + AstInfo> Hash for GrantPrivilegeStatement<T>where
T::ObjectName: Hash,
T::RoleName: Hash,
impl<T: Hash + AstInfo> Hash for GrantPrivilegeStatement<T>where T::ObjectName: Hash, T::RoleName: Hash,
source§impl<T: PartialEq + AstInfo> PartialEq<GrantPrivilegeStatement<T>> for GrantPrivilegeStatement<T>where
T::ObjectName: PartialEq,
T::RoleName: PartialEq,
impl<T: PartialEq + AstInfo> PartialEq<GrantPrivilegeStatement<T>> for GrantPrivilegeStatement<T>where T::ObjectName: PartialEq, T::RoleName: PartialEq,
source§fn eq(&self, other: &GrantPrivilegeStatement<T>) -> bool
fn eq(&self, other: &GrantPrivilegeStatement<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ast, T: AstInfo> VisitMutNode<'ast, T> for GrantPrivilegeStatement<T>
impl<'ast, T: AstInfo> VisitMutNode<'ast, T> for GrantPrivilegeStatement<T>
source§impl<'ast, T: AstInfo> VisitNode<'ast, T> for GrantPrivilegeStatement<T>
impl<'ast, T: AstInfo> VisitNode<'ast, T> for GrantPrivilegeStatement<T>
impl<T: Eq + AstInfo> Eq for GrantPrivilegeStatement<T>where T::ObjectName: Eq, T::RoleName: Eq,
impl<T: AstInfo> StructuralEq for GrantPrivilegeStatement<T>
impl<T: AstInfo> StructuralPartialEq for GrantPrivilegeStatement<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GrantPrivilegeStatement<T>where <T as AstInfo>::ObjectName: RefUnwindSafe, <T as AstInfo>::RoleName: RefUnwindSafe,
impl<T> Send for GrantPrivilegeStatement<T>where <T as AstInfo>::ObjectName: Send, <T as AstInfo>::RoleName: Send,
impl<T> Sync for GrantPrivilegeStatement<T>where <T as AstInfo>::ObjectName: Sync, <T as AstInfo>::RoleName: Sync,
impl<T> Unpin for GrantPrivilegeStatement<T>where <T as AstInfo>::ObjectName: Unpin, <T as AstInfo>::RoleName: Unpin,
impl<T> UnwindSafe for GrantPrivilegeStatement<T>where <T as AstInfo>::ObjectName: UnwindSafe, <T as AstInfo>::RoleName: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request