pub struct InitOptions {
pub path: PathBuf,
pub prefix: Option<String>,
pub git_repo: bool,
}Expand description
The options available to the init command.
Fields§
§path: PathBufThe path to initialise the diary folder.
prefix: Option<String>The prefix to use for the diary entries.
git_repo: boolWhether or not to init a git repo.
Auto Trait Implementations§
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnwindSafe for InitOptions
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