pub struct MigrationPlan {
pub protocol_version: String,
pub id: String,
pub root: PathBuf,
pub state: MigrationState,
pub answers: Vec<MigrationAnswer>,
pub template_references: Vec<String>,
pub targets: Vec<MigrationTarget>,
pub operations: Vec<MigrationOperation>,
pub exclusions: Vec<MigrationExclusion>,
/* private fields */
}Fields§
§protocol_version: String§id: String§root: PathBuf§state: MigrationState§answers: Vec<MigrationAnswer>§template_references: Vec<String>§targets: Vec<MigrationTarget>§operations: Vec<MigrationOperation>§exclusions: Vec<MigrationExclusion>Implementations§
Source§impl MigrationPlan
impl MigrationPlan
Sourcepub fn approval_digest(&self) -> Option<&str>
pub fn approval_digest(&self) -> Option<&str>
Return the immutable approval digest once this plan has been approved.
Sourcepub fn reopen(root: impl AsRef<Path>, migration_id: &str) -> Result<Self>
pub fn reopen(root: impl AsRef<Path>, migration_id: &str) -> Result<Self>
Reopen a durable migration proposal by ID.
Sourcepub fn reject(self) -> Result<Self>
pub fn reject(self) -> Result<Self>
Reject a proposed plan without applying content operations.
Sourcepub fn propose_structural(
root: impl AsRef<Path>,
operations: Vec<MigrationOperation>,
) -> Result<Self>
pub fn propose_structural( root: impl AsRef<Path>, operations: Vec<MigrationOperation>, ) -> Result<Self>
Propose a digest-bound reorganization of an initialized folderbase.
Planning reads current bytes and persists a preview, but does not mutate user content. Approval creates verified recovery snapshots before the plan can become apply-capable.
Trait Implementations§
Source§impl Debug for MigrationPlan
impl Debug for MigrationPlan
Source§impl<'de> Deserialize<'de> for MigrationPlan
impl<'de> Deserialize<'de> for MigrationPlan
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 MigrationPlan
Source§impl PartialEq for MigrationPlan
impl PartialEq for MigrationPlan
Auto Trait Implementations§
impl Freeze for MigrationPlan
impl RefUnwindSafe for MigrationPlan
impl Send for MigrationPlan
impl Sync for MigrationPlan
impl Unpin for MigrationPlan
impl UnsafeUnpin for MigrationPlan
impl UnwindSafe for MigrationPlan
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<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.