pub enum DefaultPrivilegeScope {
Global,
Schema {
schema: String,
},
}Expand description
Where a default-privilege rule applies.
Global is the owner-wide layer (pg_default_acl.defaclnamespace = 0),
which affects every schema in the database and renders without an
IN SCHEMA clause. Global sorts before Schema so the global layer
appears first in deterministic output.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DefaultPrivilegeScope
impl Clone for DefaultPrivilegeScope
Source§fn clone(&self) -> DefaultPrivilegeScope
fn clone(&self) -> DefaultPrivilegeScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DefaultPrivilegeScope
impl Debug for DefaultPrivilegeScope
Source§impl Display for DefaultPrivilegeScope
impl Display for DefaultPrivilegeScope
impl Eq for DefaultPrivilegeScope
Source§impl Hash for DefaultPrivilegeScope
impl Hash for DefaultPrivilegeScope
Source§impl Ord for DefaultPrivilegeScope
impl Ord for DefaultPrivilegeScope
Source§fn cmp(&self, other: &DefaultPrivilegeScope) -> Ordering
fn cmp(&self, other: &DefaultPrivilegeScope) -> Ordering
1.21.0 (const: unstable) · 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 DefaultPrivilegeScope
impl PartialEq for DefaultPrivilegeScope
Source§impl PartialOrd for DefaultPrivilegeScope
impl PartialOrd for DefaultPrivilegeScope
Source§impl Serialize for DefaultPrivilegeScope
impl Serialize for DefaultPrivilegeScope
impl StructuralPartialEq for DefaultPrivilegeScope
Auto Trait Implementations§
impl Freeze for DefaultPrivilegeScope
impl RefUnwindSafe for DefaultPrivilegeScope
impl Send for DefaultPrivilegeScope
impl Sync for DefaultPrivilegeScope
impl Unpin for DefaultPrivilegeScope
impl UnsafeUnpin for DefaultPrivilegeScope
impl UnwindSafe for DefaultPrivilegeScope
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.