pub struct InitOptions {
pub name: String,
pub path: Option<PathBuf>,
pub minimal: bool,
pub components: Vec<InitComponent>,
pub template: Option<InitTemplate>,
}Expand description
Параметры команды light init.
Fields§
§name: StringИмя проекта (оно же имя крейта).
path: Option<PathBuf>Каталог проекта; по умолчанию — ./<name>.
minimal: boolТолько Cargo.toml и src/main.rs (без .gitignore и light.lock).
components: Vec<InitComponent>Дополнительные компоненты (--with).
template: Option<InitTemplate>Готовый шаблон приложения (--template).
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