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 (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 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.