pub struct NoteNewOptions {
pub node_type: NodeType,
pub title: String,
pub note: Option<String>,
pub tags: Vec<String>,
pub aliases: Vec<String>,
pub dir: Option<PathBuf>,
pub force: bool,
}Expand description
Options for create_note.
Fields§
§node_type: NodeTypeNode type (goal, adr, concept, …).
title: StringHuman title (also used for H1).
note: Option<String>Optional body text after the title (agents use --note).
Optional extra tags.
aliases: Vec<String>Optional aliases.
dir: Option<PathBuf>Subdirectory under workspace (default chosen from type).
force: boolIf true, overwrite an existing file at the target path.
Trait Implementations§
Source§impl Clone for NoteNewOptions
impl Clone for NoteNewOptions
Source§fn clone(&self) -> NoteNewOptions
fn clone(&self) -> NoteNewOptions
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 NoteNewOptions
impl RefUnwindSafe for NoteNewOptions
impl Send for NoteNewOptions
impl Sync for NoteNewOptions
impl Unpin for NoteNewOptions
impl UnsafeUnpin for NoteNewOptions
impl UnwindSafe for NoteNewOptions
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