pub struct MigrationPlan {
pub schema: String,
pub container: String,
pub steps: Vec<MigrationStep>,
pub exceptions: Vec<TopologyDiagnostic>,
pub movable: usize,
pub blocked: usize,
pub moved: usize,
pub failed: usize,
pub applied: bool,
pub moved_current: Option<String>,
}Expand description
A migration, planned or applied.
Fields§
§schema: String§container: StringThe container everything moves into.
steps: Vec<MigrationStep>One step per misplaced worktree with a branch, container occupants first.
exceptions: Vec<TopologyDiagnostic>Worktrees the migration cannot address by design: detached, missing, the primary checkout off the trunk. Each says what a person does about it.
movable: usizeSteps that can be carried out as things stand.
blocked: usizeSteps that cannot.
moved: usizeSteps carried out and verified.
failed: usizeSteps attempted and not verified.
applied: boolWhether anything was changed.
moved_current: Option<String>The new path of the worktree the command was run from, when that one moved.
Trait Implementations§
Source§impl Clone for MigrationPlan
impl Clone for MigrationPlan
Source§fn clone(&self) -> MigrationPlan
fn clone(&self) -> MigrationPlan
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 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
Source§impl JsonSchema for MigrationPlan
impl JsonSchema for MigrationPlan
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto 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