pub struct BuiltinSpec {
pub path: &'static [&'static str],
pub description: Option<&'static str>,
pub schema_fn: Option<fn() -> Schema>,
}Expand description
One built-in command (or sub-command) slot.
Fields§
§path: &'static [&'static str]Path from the top-level command name. ["install"],
["libtorch", "download"].
description: Option<&'static str>One-line description for fdl -h listing. None = hidden
(reserved for collision detection but not shown in help).
schema_fn: Option<fn() -> Schema>Constructor for the command’s schema. None for parent commands
that only group sub-commands (e.g. libtorch itself has no args)
or for leaves whose argv is parsed by hand (config show,
completions, autocomplete).
Auto Trait Implementations§
impl Freeze for BuiltinSpec
impl RefUnwindSafe for BuiltinSpec
impl Send for BuiltinSpec
impl Sync for BuiltinSpec
impl Unpin for BuiltinSpec
impl UnsafeUnpin for BuiltinSpec
impl UnwindSafe for BuiltinSpec
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