Struct mz_adapter::catalog::DefaultPrivileges
source · pub struct DefaultPrivileges { /* private fields */ }Implementations§
source§impl DefaultPrivileges
impl DefaultPrivileges
sourcepub fn grant(
&mut self,
object: DefaultPrivilegeObject,
privilege: DefaultPrivilegeAclItem
)
pub fn grant( &mut self, object: DefaultPrivilegeObject, privilege: DefaultPrivilegeAclItem )
Add a new default privilege into the set of all default privileges.
sourcepub fn revoke(
&mut self,
object: &DefaultPrivilegeObject,
privilege: &DefaultPrivilegeAclItem
)
pub fn revoke( &mut self, object: &DefaultPrivilegeObject, privilege: &DefaultPrivilegeAclItem )
Revoke a default privilege from the set of all default privileges.
sourcepub fn get_privileges_for_grantee(
&self,
object: &DefaultPrivilegeObject,
grantee: &RoleId
) -> Option<&AclMode>
pub fn get_privileges_for_grantee( &self, object: &DefaultPrivilegeObject, grantee: &RoleId ) -> Option<&AclMode>
Get the privileges that will be granted on all objects matching object to grantee, if
any exist.
sourcepub fn get_applicable_privileges(
&self,
role_id: RoleId,
database_id: Option<DatabaseId>,
schema_id: Option<SchemaId>,
object_type: ObjectType
) -> impl Iterator<Item = DefaultPrivilegeAclItem>
pub fn get_applicable_privileges( &self, role_id: RoleId, database_id: Option<DatabaseId>, schema_id: Option<SchemaId>, object_type: ObjectType ) -> impl Iterator<Item = DefaultPrivilegeAclItem>
Get all default privileges that apply to the provided object details.
pub fn iter( &self ) -> impl Iterator<Item = (&DefaultPrivilegeObject, impl Iterator<Item = &DefaultPrivilegeAclItem>)>
Trait Implementations§
source§impl Clone for DefaultPrivileges
impl Clone for DefaultPrivileges
source§fn clone(&self) -> DefaultPrivileges
fn clone(&self) -> DefaultPrivileges
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 Debug for DefaultPrivileges
impl Debug for DefaultPrivileges
source§impl Default for DefaultPrivileges
impl Default for DefaultPrivileges
source§fn default() -> DefaultPrivileges
fn default() -> DefaultPrivileges
Returns the “default value” for a type. Read more
source§impl Hash for DefaultPrivileges
impl Hash for DefaultPrivileges
source§impl Ord for DefaultPrivileges
impl Ord for DefaultPrivileges
source§fn cmp(&self, other: &DefaultPrivileges) -> Ordering
fn cmp(&self, other: &DefaultPrivileges) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DefaultPrivileges
impl PartialEq for DefaultPrivileges
source§fn eq(&self, other: &DefaultPrivileges) -> bool
fn eq(&self, other: &DefaultPrivileges) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for DefaultPrivileges
impl PartialOrd for DefaultPrivileges
source§fn partial_cmp(&self, other: &DefaultPrivileges) -> Option<Ordering>
fn partial_cmp(&self, other: &DefaultPrivileges) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for DefaultPrivileges
impl Serialize for DefaultPrivileges
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for DefaultPrivileges
impl StructuralEq for DefaultPrivileges
impl StructuralPartialEq for DefaultPrivileges
Auto Trait Implementations§
impl RefUnwindSafe for DefaultPrivileges
impl Send for DefaultPrivileges
impl Sync for DefaultPrivileges
impl Unpin for DefaultPrivileges
impl UnwindSafe for DefaultPrivileges
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
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<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::Requestsource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for Twhere
T: Clone,
impl<T> PreferredContainer for Twhere T: Clone,
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto.