pub enum PathOutcome {
LoadFailed(String),
Descend {
child: Box<CommandConfig>,
new_dir: PathBuf,
new_name: String,
},
ShowHelp {
child: Box<CommandConfig>,
},
RefreshSchema {
child: Box<CommandConfig>,
child_dir: PathBuf,
},
Exec {
child: Box<CommandConfig>,
child_dir: PathBuf,
},
}Expand description
What a single Path-kind step resolved to. Every variant holds the
loaded child config when applicable, so the caller doesn’t re-load.
Variants§
LoadFailed(String)
Failed to load the child fdl.yml. The string is the
underlying error message.
Descend
Next tail token is a known sub-command of the child — descend.
ShowHelp
Tail carries --help / -h at this level.
Fields
§
child: Box<CommandConfig>RefreshSchema
Tail carries --refresh-schema.
Exec
Forward the tail to the child’s entry.
Auto Trait Implementations§
impl Freeze for PathOutcome
impl RefUnwindSafe for PathOutcome
impl Send for PathOutcome
impl Sync for PathOutcome
impl Unpin for PathOutcome
impl UnsafeUnpin for PathOutcome
impl UnwindSafe for PathOutcome
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