pub struct MigrationResult {
pub migration_id: String,
pub root: PathBuf,
pub state: MigrationState,
pub created_paths: Vec<PathBuf>,
pub journal_path: PathBuf,
}Fields§
§migration_id: String§root: PathBuf§state: MigrationState§created_paths: Vec<PathBuf>§journal_path: PathBufImplementations§
Source§impl MigrationResult
Reopen a durable migration result by ID.
impl MigrationResult
Reopen a durable migration result by ID.
pub fn reopen(root: impl AsRef<Path>, migration_id: &str) -> Result<Self>
Sourcepub fn recover(root: impl AsRef<Path>, migration_id: &str) -> Result<Self>
pub fn recover(root: impl AsRef<Path>, migration_id: &str) -> Result<Self>
Recover an interrupted released migration.
Legacy result.json executions retain their exact released Recover
semantics. Transaction-v1 executions retain this adapter’s conservative
rollback behavior. Terminal results are reopened without rewriting.
Sourcepub fn rollback_by_id(
root: impl AsRef<Path>,
migration_id: &str,
) -> Result<RollbackResult>
pub fn rollback_by_id( root: impl AsRef<Path>, migration_id: &str, ) -> Result<RollbackResult>
Roll back a verified migration using only its durable ID.
Trait Implementations§
Source§impl Clone for MigrationResult
impl Clone for MigrationResult
Source§impl Debug for MigrationResult
impl Debug for MigrationResult
Source§impl<'de> Deserialize<'de> for MigrationResult
impl<'de> Deserialize<'de> for MigrationResult
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
impl Eq for MigrationResult
Source§impl PartialEq for MigrationResult
impl PartialEq for MigrationResult
Source§impl Serialize for MigrationResult
impl Serialize for MigrationResult
impl StructuralPartialEq for MigrationResult
Auto 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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.