pub enum PgSequenceOwner {
Unowned,
OwnedBy {
table: PgTableRef,
column: PgIdentifier,
},
}Expand description
PostgreSQL sequence ownership metadata.
Variants§
Unowned
No ownership metadata.
OwnedBy
Owned by a table column label.
Fields
§
table: PgTableRefReferenced table metadata.
§
column: PgIdentifierReferenced column identifier.
Implementations§
Source§impl PgSequenceOwner
impl PgSequenceOwner
Sourcepub const fn owned_by(table: PgTableRef, column: PgIdentifier) -> Self
pub const fn owned_by(table: PgTableRef, column: PgIdentifier) -> Self
Creates an ownership label from a table and column.
Trait Implementations§
Source§impl Clone for PgSequenceOwner
impl Clone for PgSequenceOwner
Source§fn clone(&self) -> PgSequenceOwner
fn clone(&self) -> PgSequenceOwner
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 PgSequenceOwner
impl Debug for PgSequenceOwner
Source§impl Display for PgSequenceOwner
impl Display for PgSequenceOwner
Source§impl Hash for PgSequenceOwner
impl Hash for PgSequenceOwner
Source§impl Ord for PgSequenceOwner
impl Ord for PgSequenceOwner
Source§fn cmp(&self, other: &PgSequenceOwner) -> Ordering
fn cmp(&self, other: &PgSequenceOwner) -> 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 PgSequenceOwner
impl PartialEq for PgSequenceOwner
Source§fn eq(&self, other: &PgSequenceOwner) -> bool
fn eq(&self, other: &PgSequenceOwner) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgSequenceOwner
impl PartialOrd for PgSequenceOwner
impl Eq for PgSequenceOwner
impl StructuralPartialEq for PgSequenceOwner
Auto Trait Implementations§
impl Freeze for PgSequenceOwner
impl RefUnwindSafe for PgSequenceOwner
impl Send for PgSequenceOwner
impl Sync for PgSequenceOwner
impl Unpin for PgSequenceOwner
impl UnsafeUnpin for PgSequenceOwner
impl UnwindSafe for PgSequenceOwner
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