pub struct InitArgs {
pub name: Option<String>,
pub docker: bool,
pub native: bool,
}Expand description
Scaffold a new floDl project.
Three modes, mutually exclusive: default (no flag) — Docker with host-mounted libtorch (recommended) –docker — Docker with libtorch baked into the image –native — no Docker, host-provided libtorch + cargo
Fields§
§name: Option<String>New project directory name.
docker: boolGenerate a Docker scaffold with libtorch baked into the image.
native: boolGenerate a native scaffold (no Docker; libtorch provided on the host).
Trait Implementations§
Source§impl FdlArgsTrait for InitArgs
impl FdlArgsTrait for InitArgs
Source§fn try_parse_from(args: &[String]) -> Result<Self, String>
fn try_parse_from(args: &[String]) -> Result<Self, String>
Parse from an explicit argv slice. First element is the program
name (ignored), following elements are flags/values/positionals.
Source§fn render_help() -> String
fn render_help() -> String
Render
--help to a string.Auto Trait Implementations§
impl Freeze for InitArgs
impl RefUnwindSafe for InitArgs
impl Send for InitArgs
impl Sync for InitArgs
impl Unpin for InitArgs
impl UnsafeUnpin for InitArgs
impl UnwindSafe for InitArgs
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