pub struct PgTableRef { /* private fields */ }Expand description
Schema-qualified PostgreSQL table reference metadata.
Implementations§
Source§impl PgTableRef
impl PgTableRef
Sourcepub const fn new(name: PgTableName) -> Self
pub const fn new(name: PgTableName) -> Self
Creates an unqualified table reference.
Sourcepub const fn qualified(schema: PgSchemaName, name: PgTableName) -> Self
pub const fn qualified(schema: PgSchemaName, name: PgTableName) -> Self
Creates a schema-qualified table reference.
Sourcepub fn with_schema(self, schema: PgSchemaName) -> Self
pub fn with_schema(self, schema: PgSchemaName) -> Self
Adds schema qualification.
Sourcepub const fn schema(&self) -> Option<&PgSchemaName>
pub const fn schema(&self) -> Option<&PgSchemaName>
Returns the optional schema name.
Sourcepub const fn name(&self) -> &PgTableName
pub const fn name(&self) -> &PgTableName
Returns the table name.
Trait Implementations§
Source§impl Clone for PgTableRef
impl Clone for PgTableRef
Source§fn clone(&self) -> PgTableRef
fn clone(&self) -> PgTableRef
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 PgTableRef
impl Debug for PgTableRef
Source§impl Display for PgTableRef
impl Display for PgTableRef
Source§impl Hash for PgTableRef
impl Hash for PgTableRef
Source§impl Ord for PgTableRef
impl Ord for PgTableRef
Source§fn cmp(&self, other: &PgTableRef) -> Ordering
fn cmp(&self, other: &PgTableRef) -> 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 PgTableRef
impl PartialEq for PgTableRef
Source§fn eq(&self, other: &PgTableRef) -> bool
fn eq(&self, other: &PgTableRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgTableRef
impl PartialOrd for PgTableRef
impl Eq for PgTableRef
impl StructuralPartialEq for PgTableRef
Auto Trait Implementations§
impl Freeze for PgTableRef
impl RefUnwindSafe for PgTableRef
impl Send for PgTableRef
impl Sync for PgTableRef
impl Unpin for PgTableRef
impl UnsafeUnpin for PgTableRef
impl UnwindSafe for PgTableRef
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