pub struct MigrationStep {Show 14 fields
pub branch: String,
pub from: String,
pub to: String,
pub head: Option<String>,
pub action: MigrationAction,
pub dirty: DirtyState,
pub blockers: Vec<TopologyDiagnostic>,
pub outcome: StepOutcome,
pub message: Option<String>,
pub before: Option<WorktreeFingerprint>,
pub after: Option<WorktreeFingerprint>,
pub differences: Vec<String>,
pub envrc: Option<EnvrcApproval>,
pub hooks: Option<HooksPath>,
}Expand description
One worktree to bring home.
Fields§
§branch: StringThe branch it holds.
from: StringWhere it is.
to: StringWhere it belongs.
head: Option<String>The commit checked out.
action: MigrationActionHow it moves.
dirty: DirtyStateIts uncommitted work, which moves with it.
blockers: Vec<TopologyDiagnostic>Why it cannot move, when it cannot.
outcome: StepOutcomeWhat happened.
message: Option<String>What happened, in words, when it was not simply moved.
before: Option<WorktreeFingerprint>The fingerprint before the move.
after: Option<WorktreeFingerprint>The fingerprint after it.
differences: Vec<String>What differs between the two; empty when verified.
envrc: Option<EnvrcApproval>What became of its .envrc under direnv once it was at its new path: the primary
checkout’s approval carried there, or why it was not. Only on a moved step.
hooks: Option<HooksPath>Which hooks it runs at its new path: a per-worktree core.hooksPath names the old
one, so a moved worktree is bound again to its own tree’s (I2718). Only on a moved
step.
Trait Implementations§
Source§impl Clone for MigrationStep
impl Clone for MigrationStep
Source§fn clone(&self) -> MigrationStep
fn clone(&self) -> MigrationStep
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 MigrationStep
impl Debug for MigrationStep
Source§impl<'de> Deserialize<'de> for MigrationStep
impl<'de> Deserialize<'de> for MigrationStep
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 MigrationStep
impl JsonSchema for MigrationStep
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 MigrationStep
impl RefUnwindSafe for MigrationStep
impl Send for MigrationStep
impl Sync for MigrationStep
impl Unpin for MigrationStep
impl UnsafeUnpin for MigrationStep
impl UnwindSafe for MigrationStep
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