pub struct MigrationResult {
pub snapshot: WorkspaceSnapshot,
pub from_version: u16,
pub to_version: u16,
pub warnings: Vec<String>,
}Expand description
Result of attempting to migrate a workspace from an older schema version.
Fields§
§snapshot: WorkspaceSnapshotThe migrated snapshot.
from_version: u16Source version before migration.
to_version: u16Target version after migration.
warnings: Vec<String>Warnings or notes from the migration.
Trait Implementations§
Source§impl Clone for MigrationResult
impl Clone for MigrationResult
Source§fn clone(&self) -> MigrationResult
fn clone(&self) -> MigrationResult
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 moreAuto Trait Implementations§
impl Freeze for MigrationResult
impl RefUnwindSafe for MigrationResult
impl Send for MigrationResult
impl Sync for MigrationResult
impl Unpin for MigrationResult
impl UnsafeUnpin for MigrationResult
impl UnwindSafe for MigrationResult
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