#[non_exhaustive]pub struct MobKitMigrateReport {
pub mode: MigrateMode,
pub state_dir: PathBuf,
pub fenced_databases: Vec<PathBuf>,
pub ledger: Vec<LedgerBaselineEntry>,
pub renames: Vec<FileRenameEntry>,
pub twins: Vec<TwinReport>,
pub findings: Vec<StorageFinding>,
pub notes: Vec<String>,
pub errors: Vec<String>,
}Expand description
The full storage-migrate report for one state directory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: MigrateModeDry-run or apply.
state_dir: PathBufThe state directory swept.
fenced_databases: Vec<PathBuf>Databases the fence covers (in apply mode, the fence actually held; in dry-run, what an apply run would fence).
ledger: Vec<LedgerBaselineEntry>Ledger baseline entries per database × domain (case 1).
renames: Vec<FileRenameEntry>File-name unification renames (case 2, plus case-3 canonicalization renames — every physical rename this run performed or would perform).
twins: Vec<TwinReport>File-name twins and their resolution (case 3).
findings: Vec<StorageFinding>Deprecated-leftover findings (case 5; report-only), reusing the doctor finding vocabulary.
notes: Vec<String>Human-readable notes (exemptions, report-only carve-outs).
errors: Vec<String>Fail-closed refusals and hard failures. Non-empty ⇒ nonzero exit.
Implementations§
Source§impl MobKitMigrateReport
impl MobKitMigrateReport
Sourcepub fn new(mode: MigrateMode, state_dir: &Path) -> Self
pub fn new(mode: MigrateMode, state_dir: &Path) -> Self
New empty report for one run.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
True when the run must exit nonzero (refusals, fence failures, constructor failures, adoption refusals).
Trait Implementations§
Source§impl Clone for MobKitMigrateReport
impl Clone for MobKitMigrateReport
Source§fn clone(&self) -> MobKitMigrateReport
fn clone(&self) -> MobKitMigrateReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MobKitMigrateReport
impl Debug for MobKitMigrateReport
Source§impl Default for MobKitMigrateReport
impl Default for MobKitMigrateReport
Source§fn default() -> MobKitMigrateReport
fn default() -> MobKitMigrateReport
Source§impl<'de> Deserialize<'de> for MobKitMigrateReport
impl<'de> Deserialize<'de> for MobKitMigrateReport
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>,
Auto Trait Implementations§
impl Freeze for MobKitMigrateReport
impl RefUnwindSafe for MobKitMigrateReport
impl Send for MobKitMigrateReport
impl Sync for MobKitMigrateReport
impl Unpin for MobKitMigrateReport
impl UnsafeUnpin for MobKitMigrateReport
impl UnwindSafe for MobKitMigrateReport
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
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> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
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<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> ⓘ
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> ⓘ
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