pub struct SplitOptions {
pub section: String,
pub title: Option<String>,
pub type_: Option<String>,
pub link_text: Option<String>,
pub force: bool,
pub dry_run: bool,
pub update_index: bool,
pub update_log: bool,
pub author: Option<String>,
}Expand description
Options for splitting a concept section into a new concept.
Fields§
§section: StringThe heading/section title to extract (e.g. “Pricing Model” or “## Pricing Model”).
title: Option<String>Optional title for the new concept (defaults to section heading text).
type_: Option<String>Optional concept type for the new concept (defaults to “Concept”).
link_text: Option<String>Optional custom text for the replacement link in the source document.
force: boolOverwrite destination file if it exists.
dry_run: boolIf true, simulate changes without writing to disk.
update_index: boolRegenerate index.md listings after split.
update_log: boolRecord the split in log.md.
Author attribution for generated frontmatter and log entry.
Implementations§
Trait Implementations§
Source§impl Clone for SplitOptions
impl Clone for SplitOptions
Source§fn clone(&self) -> SplitOptions
fn clone(&self) -> SplitOptions
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 SplitOptions
impl Debug for SplitOptions
Source§impl Default for SplitOptions
impl Default for SplitOptions
impl Eq for SplitOptions
Source§impl PartialEq for SplitOptions
impl PartialEq for SplitOptions
impl StructuralPartialEq for SplitOptions
Auto Trait Implementations§
impl Freeze for SplitOptions
impl RefUnwindSafe for SplitOptions
impl Send for SplitOptions
impl Sync for SplitOptions
impl Unpin for SplitOptions
impl UnsafeUnpin for SplitOptions
impl UnwindSafe for SplitOptions
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