pub enum PostgresEntity {
Show 14 variants
Schema(Schema),
Enum(Enum),
Sequence(Sequence),
Role(Role),
Policy(Policy),
Privilege(Privilege),
Table(Table),
Column(Column),
Index(Index),
ForeignKey(ForeignKey),
PrimaryKey(PrimaryKey),
UniqueConstraint(UniqueConstraint),
CheckConstraint(CheckConstraint),
View(View),
}Expand description
Unified PostgreSQL DDL entity enum for serialization
Uses internally-tagged enum representation where entityType discriminates variants.
Variants§
Schema(Schema)
Enum(Enum)
Sequence(Sequence)
Role(Role)
Policy(Policy)
Privilege(Privilege)
Table(Table)
Column(Column)
Index(Index)
ForeignKey(ForeignKey)
PrimaryKey(PrimaryKey)
UniqueConstraint(UniqueConstraint)
CheckConstraint(CheckConstraint)
View(View)
Trait Implementations§
Source§impl Clone for PostgresEntity
impl Clone for PostgresEntity
Source§fn clone(&self) -> PostgresEntity
fn clone(&self) -> PostgresEntity
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 PostgresEntity
impl Debug for PostgresEntity
Source§impl PartialEq for PostgresEntity
impl PartialEq for PostgresEntity
Source§fn eq(&self, other: &PostgresEntity) -> bool
fn eq(&self, other: &PostgresEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PostgresEntity
impl StructuralPartialEq for PostgresEntity
Auto Trait Implementations§
impl Freeze for PostgresEntity
impl RefUnwindSafe for PostgresEntity
impl Send for PostgresEntity
impl Sync for PostgresEntity
impl Unpin for PostgresEntity
impl UnsafeUnpin for PostgresEntity
impl UnwindSafe for PostgresEntity
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