pub struct MigrationPlan {
pub source_version: String,
pub target_version: String,
pub changes: Vec<SchemaChange>,
pub impact_score: u8,
pub is_breaking: bool,
}
Expand description
Represents a plan for migrating between schema versions
A migration plan contains all the necessary changes required to evolve from one schema version to another, along with impact analysis.
Fields§
§source_version: String
Version of the source schema
target_version: String
Version of the target schema
changes: Vec<SchemaChange>
List of changes required for migration
impact_score: u8
Impact score (0-100) indicating the magnitude of changes
is_breaking: bool
Indicates whether this migration contains breaking changes
Implementations§
Trait Implementations§
Source§impl Clone for MigrationPlan
impl Clone for MigrationPlan
Source§fn clone(&self) -> MigrationPlan
fn clone(&self) -> MigrationPlan
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 MigrationPlan
impl Debug for MigrationPlan
Source§impl<'de> Deserialize<'de> for MigrationPlan
impl<'de> Deserialize<'de> for MigrationPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MigrationPlan
impl RefUnwindSafe for MigrationPlan
impl Send for MigrationPlan
impl Sync for MigrationPlan
impl Unpin for MigrationPlan
impl UnwindSafe for MigrationPlan
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