pub struct SchemaDiff {
pub added_tables: Vec<String>,
pub removed_tables: Vec<String>,
pub changed_tables: Vec<TableChange>,
pub added_fields: Vec<(String, String)>,
pub removed_fields: Vec<(String, String)>,
pub changed_fields: Vec<FieldTypeChange>,
pub added_indexes: Vec<(String, String)>,
pub removed_indexes: Vec<(String, String)>,
pub added_events: Vec<(String, String)>,
pub removed_events: Vec<(String, String)>,
pub added_functions: Vec<String>,
pub removed_functions: Vec<String>,
}Expand description
Structural diff between two schema states.
Captures added/removed tables, fields, indexes, events, and functions. Changed table modes (e.g., SCHEMAFULL to SCHEMALESS) and field type changes are tracked separately.
Fields§
§added_tables: Vec<String>§removed_tables: Vec<String>§changed_tables: Vec<TableChange>§added_fields: Vec<(String, String)>§removed_fields: Vec<(String, String)>§changed_fields: Vec<FieldTypeChange>§added_indexes: Vec<(String, String)>§removed_indexes: Vec<(String, String)>§added_events: Vec<(String, String)>§removed_events: Vec<(String, String)>§added_functions: Vec<String>§removed_functions: Vec<String>Implementations§
Trait Implementations§
Source§impl Debug for SchemaDiff
impl Debug for SchemaDiff
Source§impl Default for SchemaDiff
impl Default for SchemaDiff
Source§fn default() -> SchemaDiff
fn default() -> SchemaDiff
Returns the “default value” for a type. Read more
Source§impl Display for SchemaDiff
impl Display for SchemaDiff
Source§impl PartialEq for SchemaDiff
impl PartialEq for SchemaDiff
impl Eq for SchemaDiff
impl StructuralPartialEq for SchemaDiff
Auto Trait Implementations§
impl Freeze for SchemaDiff
impl RefUnwindSafe for SchemaDiff
impl Send for SchemaDiff
impl Sync for SchemaDiff
impl Unpin for SchemaDiff
impl UnsafeUnpin for SchemaDiff
impl UnwindSafe for SchemaDiff
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more