pub struct PgTable { /* private fields */ }Expand description
PostgreSQL table metadata without database introspection.
Implementations§
Source§impl PgTable
impl PgTable
Sourcepub const fn new(reference: PgTableRef) -> Self
pub const fn new(reference: PgTableRef) -> Self
Creates table metadata from a table reference.
Sourcepub const fn with_kind(self, kind: PgTableKind) -> Self
pub const fn with_kind(self, kind: PgTableKind) -> Self
Sets the table kind.
Sourcepub const fn with_persistence(self, persistence: PgTablePersistence) -> Self
pub const fn with_persistence(self, persistence: PgTablePersistence) -> Self
Sets the persistence label.
Sourcepub const fn reference(&self) -> &PgTableRef
pub const fn reference(&self) -> &PgTableRef
Returns the table reference.
Sourcepub const fn kind(&self) -> PgTableKind
pub const fn kind(&self) -> PgTableKind
Returns the table kind.
Sourcepub const fn persistence(&self) -> PgTablePersistence
pub const fn persistence(&self) -> PgTablePersistence
Returns the persistence label.
Trait Implementations§
Source§impl Ord for PgTable
impl Ord for PgTable
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 PartialOrd for PgTable
impl PartialOrd for PgTable
impl Eq for PgTable
impl StructuralPartialEq for PgTable
Auto Trait Implementations§
impl Freeze for PgTable
impl RefUnwindSafe for PgTable
impl Send for PgTable
impl Sync for PgTable
impl Unpin for PgTable
impl UnsafeUnpin for PgTable
impl UnwindSafe for PgTable
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