pub struct PgNamespace {
pub nspname: Str,
pub nspowner: Str,
pub nspacl: Option<Vec<SchemaAclItem>>,
pub description: Option<Str>,
pub seclabel: Option<Str>,
pub seclabel_provider: Option<Str>,
pub initprivs: Option<Vec<SchemaAclItem>>,
pub initprivs_type: Option<PgNamespaceInitprivsType>,
}Expand description
The DDL-only contents of pg_namespace
Fields§
§nspname: Strname Name of the namespace
nspowner: Stroid (references pg_authid.oid) Owner of the namespace
nspacl: Option<Vec<SchemaAclItem>>aclitem[] Access privileges; see Section 5.8 for details
description: Option<Str>text The comment from pg_description
seclabel: Option<Str>text The seclabel from pg_seclabel
seclabel_provider: Option<Str>text The provider from pg_seclabel
initprivs: Option<Vec<SchemaAclItem>>aclitem[] The initial access privileges from pg_init_privs.
initprivs_type: Option<PgNamespaceInitprivsType>char A code defining the type of initial privilege of this object from pg_init_privs. ‘i’ if set by initdb, ‘e’ if set by CREATE EXTENSION.
Trait Implementations§
Source§impl Clone for PgNamespace
impl Clone for PgNamespace
Source§fn clone(&self) -> PgNamespace
fn clone(&self) -> PgNamespace
Returns a duplicate 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 PgNamespace
impl Debug for PgNamespace
Source§impl<'de> Deserialize<'de> for PgNamespace
impl<'de> Deserialize<'de> for PgNamespace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Equivalent<PgNamespace> for Str
impl Equivalent<PgNamespace> for Str
Source§fn equivalent(&self, key: &PgNamespace) -> bool
fn equivalent(&self, key: &PgNamespace) -> bool
Compare self to
key and return true if they are equal.Source§impl Equivalent<PgNamespace> for str
impl Equivalent<PgNamespace> for str
Source§fn equivalent(&self, key: &PgNamespace) -> bool
fn equivalent(&self, key: &PgNamespace) -> bool
Compare self to
key and return true if they are equal.Source§impl Hash for PgNamespace
impl Hash for PgNamespace
Source§impl PartialEq for PgNamespace
impl PartialEq for PgNamespace
Source§impl Serialize for PgNamespace
impl Serialize for PgNamespace
impl Eq for PgNamespace
impl StructuralPartialEq for PgNamespace
Auto Trait Implementations§
impl Freeze for PgNamespace
impl RefUnwindSafe for PgNamespace
impl Send for PgNamespace
impl Sync for PgNamespace
impl Unpin for PgNamespace
impl UnsafeUnpin for PgNamespace
impl UnwindSafe for PgNamespace
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> 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.