pub struct RemoveOptions {
pub dry_run: bool,
pub force: bool,
pub redirect_to: Option<ConceptId>,
pub unlink: bool,
pub update_index: bool,
pub update_log: bool,
pub author: Option<String>,
}Expand description
Options for removing a concept.
Fields§
§dry_run: boolIf true, simulate changes without writing to disk.
force: boolForce deletion even if inbound links exist.
redirect_to: Option<ConceptId>Re-route all inbound links to this concept instead.
unlink: boolConvert inbound links to plain text ([Text](dest) -> Text).
update_index: boolRegenerate index.md listings after removal.
update_log: boolRecord the deletion in log.md.
Author attribution for the log entry.
Trait Implementations§
Source§impl Clone for RemoveOptions
impl Clone for RemoveOptions
Source§fn clone(&self) -> RemoveOptions
fn clone(&self) -> RemoveOptions
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 RemoveOptions
impl Debug for RemoveOptions
Source§impl Default for RemoveOptions
impl Default for RemoveOptions
impl Eq for RemoveOptions
Source§impl PartialEq for RemoveOptions
impl PartialEq for RemoveOptions
impl StructuralPartialEq for RemoveOptions
Auto Trait Implementations§
impl Freeze for RemoveOptions
impl RefUnwindSafe for RemoveOptions
impl Send for RemoveOptions
impl Sync for RemoveOptions
impl Unpin for RemoveOptions
impl UnsafeUnpin for RemoveOptions
impl UnwindSafe for RemoveOptions
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