pub struct MigrationPlan {
pub steps: Vec<MigrationStep>,
pub estimated_duration_secs: f64,
pub requires_downtime: bool,
pub warnings: Vec<String>,
}Expand description
A migration plan containing the sequence of operations to execute
The plan is ordered and dependency-aware. Operations are grouped into steps that can be executed in order.
Fields§
§steps: Vec<MigrationStep>Steps to execute in order
estimated_duration_secs: f64Estimated duration (in seconds)
requires_downtime: boolWhether this plan requires downtime
warnings: Vec<String>Warnings about potentially dangerous operations
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 (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 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
Source§impl PartialEq for MigrationPlan
impl PartialEq for MigrationPlan
Source§fn eq(&self, other: &MigrationPlan) -> bool
fn eq(&self, other: &MigrationPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MigrationPlan
impl Serialize for MigrationPlan
impl StructuralPartialEq for MigrationPlan
Auto Trait Implementations§
impl Freeze for MigrationPlan
impl RefUnwindSafe for MigrationPlan
impl Send for MigrationPlan
impl Sync for MigrationPlan
impl Unpin for MigrationPlan
impl UnsafeUnpin 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