pub struct PgSchemaName(/* private fields */);Expand description
PostgreSQL schema name primitive.
Implementations§
Source§impl PgSchemaName
impl PgSchemaName
Sourcepub fn public() -> Self
pub fn public() -> Self
Returns the public schema name.
§Panics
Panics only if the built-in public constant is changed to an invalid identifier.
Sourcepub fn pg_catalog() -> Self
pub fn pg_catalog() -> Self
Returns the pg_catalog schema name.
§Panics
Panics only if the built-in pg_catalog constant is changed to an invalid identifier.
Sourcepub fn information_schema() -> Self
pub fn information_schema() -> Self
Returns the information_schema schema name.
§Panics
Panics only if the built-in information_schema constant is changed to an invalid identifier.
Sourcepub fn class(&self) -> PgSchemaClass
pub fn class(&self) -> PgSchemaClass
Returns the broad schema classification.
Trait Implementations§
Source§impl AsRef<str> for PgSchemaName
impl AsRef<str> for PgSchemaName
Source§impl Clone for PgSchemaName
impl Clone for PgSchemaName
Source§fn clone(&self) -> PgSchemaName
fn clone(&self) -> PgSchemaName
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 PgSchemaName
impl Debug for PgSchemaName
Source§impl Display for PgSchemaName
impl Display for PgSchemaName
Source§impl FromStr for PgSchemaName
impl FromStr for PgSchemaName
Source§impl Hash for PgSchemaName
impl Hash for PgSchemaName
Source§impl Ord for PgSchemaName
impl Ord for PgSchemaName
Source§fn cmp(&self, other: &PgSchemaName) -> Ordering
fn cmp(&self, other: &PgSchemaName) -> 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 PgSchemaName
impl PartialEq for PgSchemaName
Source§fn eq(&self, other: &PgSchemaName) -> bool
fn eq(&self, other: &PgSchemaName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgSchemaName
impl PartialOrd for PgSchemaName
Source§impl TryFrom<&str> for PgSchemaName
impl TryFrom<&str> for PgSchemaName
impl Eq for PgSchemaName
impl StructuralPartialEq for PgSchemaName
Auto Trait Implementations§
impl Freeze for PgSchemaName
impl RefUnwindSafe for PgSchemaName
impl Send for PgSchemaName
impl Sync for PgSchemaName
impl Unpin for PgSchemaName
impl UnsafeUnpin for PgSchemaName
impl UnwindSafe for PgSchemaName
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