pub struct ImportBrainOptions {
pub into_scope: String,
pub dest_root: Option<String>,
pub copy_markdown: bool,
pub force: bool,
pub mount: bool,
pub max_files: usize,
pub max_bytes: u64,
}Expand description
Options for importing one workspace brain into another.
Fields§
§into_scope: StringDestination scope id. Use MAIN_SCOPE to merge into MainBrain.
Any other id registers/keeps a separate SubBrain.
dest_root: Option<String>Relative dest root for copied Markdown (default: docs/subbrains/<id> or docs/imported).
copy_markdown: boolCopy Markdown notes from source workspace (ignored when mount succeeds).
force: boolOverwrite existing files at destination.
mount: boolIf source lies under target, register that path as SubBrain root without copying.
Umbrella: scopes import --from ./project-a --as project-a --mount.
max_files: usizeMax .md files to copy (default IMPORT_DEFAULT_MAX_FILES).
max_bytes: u64Max total bytes to copy (default IMPORT_DEFAULT_MAX_BYTES).
Trait Implementations§
Source§impl Clone for ImportBrainOptions
impl Clone for ImportBrainOptions
Source§fn clone(&self) -> ImportBrainOptions
fn clone(&self) -> ImportBrainOptions
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 ImportBrainOptions
impl Debug for ImportBrainOptions
Auto Trait Implementations§
impl Freeze for ImportBrainOptions
impl RefUnwindSafe for ImportBrainOptions
impl Send for ImportBrainOptions
impl Sync for ImportBrainOptions
impl Unpin for ImportBrainOptions
impl UnsafeUnpin for ImportBrainOptions
impl UnwindSafe for ImportBrainOptions
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