pub enum DatabaseReport {
BackedUp {
source: PathBuf,
backup: PathBuf,
},
Reset {
path: PathBuf,
},
Compacted {
path: PathBuf,
},
Inspected {
path: PathBuf,
state: SchemaState,
},
Cutover {
path: PathBuf,
state: SchemaState,
outcome: CutoverOutcome,
},
Healed {
path: PathBuf,
report: HealReport,
},
DryRun {
path: PathBuf,
state: SchemaState,
kind: DryRunKind,
},
}Expand description
The typed result of a database command.
Variants§
BackedUp
backup completed.
Reset
reset recreated the database.
Compacted
compact vacuumed the database.
Inspected
inspect read the schema state (writes nothing).
Cutover
cutover flipped schema ownership.
Fields
§
state: SchemaStateThe observed pre-cutover schema state.
§
outcome: CutoverOutcomeWhether the cutover converted or no-op’d.
Healed
heal rebuilt the database out-of-place.
Fields
§
report: HealReportThe heal report (rows copied, .bak path, warnings).
DryRun
A --dry-run observed the schema state and wrote nothing.
Implementations§
Source§impl DatabaseReport
impl DatabaseReport
Sourcepub fn render_lines(&self) -> Vec<String>
pub fn render_lines(&self) -> Vec<String>
The operator-facing lines for this report (the ported click echo text).
Trait Implementations§
Source§impl Clone for DatabaseReport
impl Clone for DatabaseReport
Source§fn clone(&self) -> DatabaseReport
fn clone(&self) -> DatabaseReport
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 DatabaseReport
impl Debug for DatabaseReport
impl Eq for DatabaseReport
Source§impl PartialEq for DatabaseReport
impl PartialEq for DatabaseReport
impl StructuralPartialEq for DatabaseReport
Auto Trait Implementations§
impl Freeze for DatabaseReport
impl RefUnwindSafe for DatabaseReport
impl Send for DatabaseReport
impl Sync for DatabaseReport
impl Unpin for DatabaseReport
impl UnsafeUnpin for DatabaseReport
impl UnwindSafe for DatabaseReport
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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