pub struct CatalogMigrationPlan {
pub files: Vec<PlannedMigrationFile>,
pub unmigrated: Vec<UnmigratedFile>,
pub conflicts: Vec<SchemaConflict>,
pub unresolved_schemas: Vec<UnresolvedSchema>,
pub total_leaf_files: usize,
}Expand description
Complete read-only result of source discovery and schema preflight.
Fields§
§files: Vec<PlannedMigrationFile>§unmigrated: Vec<UnmigratedFile>§conflicts: Vec<SchemaConflict>§unresolved_schemas: Vec<UnresolvedSchema>§total_leaf_files: usizeImplementations§
Source§impl CatalogMigrationPlan
impl CatalogMigrationPlan
Sourcepub const fn has_errors(&self) -> bool
pub const fn has_errors(&self) -> bool
Returns whether preflight found a condition that prevents writing.
Sourcepub fn ensure_ready(&self) -> Result<()>
pub fn ensure_ready(&self) -> Result<()>
Rejects a plan that cannot be written safely.
§Errors
Returns one summary error containing every schema conflict and unresolved schema.
Trait Implementations§
Source§impl Clone for CatalogMigrationPlan
impl Clone for CatalogMigrationPlan
Source§impl Debug for CatalogMigrationPlan
impl Debug for CatalogMigrationPlan
Auto Trait Implementations§
impl Freeze for CatalogMigrationPlan
impl RefUnwindSafe for CatalogMigrationPlan
impl Send for CatalogMigrationPlan
impl Sync for CatalogMigrationPlan
impl Unpin for CatalogMigrationPlan
impl UnsafeUnpin for CatalogMigrationPlan
impl UnwindSafe for CatalogMigrationPlan
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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