pub struct MigrationPhases {
pub preparation_start: Option<NaiveDate>,
pub data_migration_start: Option<NaiveDate>,
pub parallel_run_start: Option<NaiveDate>,
pub cutover_date: NaiveDate,
pub stabilization_end: NaiveDate,
pub hypercare_end: Option<NaiveDate>,
}Expand description
Migration phases configuration.
Fields§
§preparation_start: Option<NaiveDate>Preparation phase start.
data_migration_start: Option<NaiveDate>Data migration start.
parallel_run_start: Option<NaiveDate>Parallel run period start.
cutover_date: NaiveDateCutover date (go-live).
stabilization_end: NaiveDateStabilization end date.
hypercare_end: Option<NaiveDate>Hypercare end date.
Implementations§
Source§impl MigrationPhases
impl MigrationPhases
Sourcepub fn total_duration_months(&self) -> u32
pub fn total_duration_months(&self) -> u32
Calculate total migration duration in months.
Sourcepub fn phase_at(&self, date: NaiveDate) -> MigrationPhase
pub fn phase_at(&self, date: NaiveDate) -> MigrationPhase
Get the current migration phase for a given date.
Trait Implementations§
Source§impl Clone for MigrationPhases
impl Clone for MigrationPhases
Source§fn clone(&self) -> MigrationPhases
fn clone(&self) -> MigrationPhases
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 MigrationPhases
impl Debug for MigrationPhases
Source§impl Default for MigrationPhases
impl Default for MigrationPhases
Source§impl<'de> Deserialize<'de> for MigrationPhases
impl<'de> Deserialize<'de> for MigrationPhases
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 MigrationPhases
impl RefUnwindSafe for MigrationPhases
impl Send for MigrationPhases
impl Sync for MigrationPhases
impl Unpin for MigrationPhases
impl UnwindSafe for MigrationPhases
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