pub struct StructurePlan {
pub synthesized: Vec<SynthNode>,
pub adoptions: Vec<Adoption>,
}Expand description
A plan to fold a directory tree into the containment tree — the mirror
strategy from docs/init-adoption.md. Produced by Workspace::plan_mirror
without touching disk, applied by Workspace::apply_plan; inspect it in
between for a dry-run preview.
Fields§
§synthesized: Vec<SynthNode>Folder-note nodes to create for bare directories, parents-first so a
nested folder-note’s parent already exists when it is created. Applied
with create.
adoptions: Vec<Adoption>Existing files to link under a node. Covers each directory’s own existing
index/readme (linked under the parent directory’s node) and every
other content file (linked under its own directory’s node). Applied with
adopt.
Implementations§
Source§impl StructurePlan
impl StructurePlan
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Nothing to create and nothing to adopt — the directory holds no content beyond the root.
A mirror import folds only documents into the tree; loose opaque files
(images, PDFs, binaries) are deliberately left alone — attaching them is a
separate, explicit act (attach /
loose_attachments), never inferred in
bulk from a directory walk.
Trait Implementations§
Source§impl Clone for StructurePlan
impl Clone for StructurePlan
Source§fn clone(&self) -> StructurePlan
fn clone(&self) -> StructurePlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StructurePlan
impl Debug for StructurePlan
Source§impl Default for StructurePlan
impl Default for StructurePlan
Source§fn default() -> StructurePlan
fn default() -> StructurePlan
impl Eq for StructurePlan
Source§impl PartialEq for StructurePlan
impl PartialEq for StructurePlan
impl StructuralPartialEq for StructurePlan
Auto Trait Implementations§
impl Freeze for StructurePlan
impl RefUnwindSafe for StructurePlan
impl Send for StructurePlan
impl Sync for StructurePlan
impl Unpin for StructurePlan
impl UnsafeUnpin for StructurePlan
impl UnwindSafe for StructurePlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.