pub struct SchemaSnapshot {
pub tables: Vec<TableDef>,
pub views: Vec<ViewDef>,
pub indexes: Vec<IndexDef>,
pub sequences: Vec<SequenceDef>,
pub functions: Vec<FunctionDef>,
pub enums: Vec<EnumDef>,
pub constraints: Vec<ConstraintDef>,
pub triggers: Vec<TriggerDef>,
pub extensions: Vec<String>,
}Expand description
Complete snapshot of a PostgreSQL schema.
Fields§
§tables: Vec<TableDef>All base tables in the schema.
views: Vec<ViewDef>All views (regular and materialized) in the schema.
indexes: Vec<IndexDef>All indexes in the schema.
sequences: Vec<SequenceDef>All sequences in the schema.
functions: Vec<FunctionDef>All functions and procedures in the schema.
enums: Vec<EnumDef>All enum types in the schema.
constraints: Vec<ConstraintDef>All table constraints in the schema.
triggers: Vec<TriggerDef>All triggers in the schema.
extensions: Vec<String>Names of installed extensions (excluding plpgsql).
Trait Implementations§
Source§impl Clone for SchemaSnapshot
impl Clone for SchemaSnapshot
Source§fn clone(&self) -> SchemaSnapshot
fn clone(&self) -> SchemaSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaSnapshot
impl Debug for SchemaSnapshot
Source§impl PartialEq for SchemaSnapshot
impl PartialEq for SchemaSnapshot
Source§impl Serialize for SchemaSnapshot
impl Serialize for SchemaSnapshot
impl StructuralPartialEq for SchemaSnapshot
Auto Trait Implementations§
impl Freeze for SchemaSnapshot
impl RefUnwindSafe for SchemaSnapshot
impl Send for SchemaSnapshot
impl Sync for SchemaSnapshot
impl Unpin for SchemaSnapshot
impl UnsafeUnpin for SchemaSnapshot
impl UnwindSafe for SchemaSnapshot
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