pub struct InitOptions {
pub dir: Option<PathBuf>,
pub cwd: PathBuf,
pub name: Option<String>,
pub scope: Option<String>,
pub description: Option<String>,
}Expand description
InitOptions holds the options of sokf init.
Fields§
§dir: Option<PathBuf>dir is DIR, a path in the repository or a path relative to cwd.
The default is /knowledge.
cwd: PathBufcwd is the current directory, from which a relative DIR resolves.
name: Option<String>name holds the value of --name. The default is the last segment of
DIR.
scope: Option<String>scope holds the value of --scope. The default is the owner in the
URL of the git remote origin.
description: Option<String>description holds the value of --description.
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Auto Trait Implementations§
impl Forget for InitOptions
impl Freeze for InitOptions
impl Move for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnsafeUnpin 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