pub struct RenamePlan {
pub original_path: PathBuf,
pub parent: PathBuf,
pub old_name: OsString,
pub new_name: OsString,
pub depth: usize,
pub kind: ItemKind,
pub detected_date: Option<DetectedDate>,
pub batch_id: Uuid,
}Expand description
A single planned rename operation. Produced by the planner; consumed by the executor in bottom-up order.
Fields§
§original_path: PathBufPath of the item at planning time.
parent: PathBufParent directory at planning time.
old_name: OsStringOriginal name (just the last path component).
new_name: OsStringTarget name (just the last component, in the new parent).
depth: usizeDepth of the original path relative to the batch root. Used by the executor to enforce the bottom-up invariant (deeper paths first).
kind: ItemKindWhat kind of item this is.
detected_date: Option<DetectedDate>If a date was detected during slugification, captured here so the reorder phase can locate and move it.
batch_id: UuidUUID grouping all plans of the same batch.
Trait Implementations§
Source§impl Clone for RenamePlan
impl Clone for RenamePlan
Source§fn clone(&self) -> RenamePlan
fn clone(&self) -> RenamePlan
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 moreAuto Trait Implementations§
impl Freeze for RenamePlan
impl RefUnwindSafe for RenamePlan
impl Send for RenamePlan
impl Sync for RenamePlan
impl Unpin for RenamePlan
impl UnsafeUnpin for RenamePlan
impl UnwindSafe for RenamePlan
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