Struct shellfish::handler::app::DefaultCommandLineHandler
source · pub struct DefaultCommandLineHandler {
pub proj_name: Option<String>,
}
Available on crate feature
app
only.Expand description
Shellfish’s CLI handler. This is helpful for when you want to parse input from the command line, rather than in an interactive case.
The main differences are:
- It expects the binary name to be first
- Aswell as
help
one can use--help
Fields§
§proj_name: Option<String>
Trait Implementations§
source§impl Clone for DefaultCommandLineHandler
impl Clone for DefaultCommandLineHandler
source§fn clone(&self) -> DefaultCommandLineHandler
fn clone(&self) -> DefaultCommandLineHandler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for DefaultCommandLineHandler
impl Default for DefaultCommandLineHandler
source§fn default() -> DefaultCommandLineHandler
fn default() -> DefaultCommandLineHandler
Returns the “default value” for a type. Read more
source§impl<T> Handler<T> for DefaultCommandLineHandler
impl<T> Handler<T> for DefaultCommandLineHandler
source§impl PartialEq for DefaultCommandLineHandler
impl PartialEq for DefaultCommandLineHandler
source§fn eq(&self, other: &DefaultCommandLineHandler) -> bool
fn eq(&self, other: &DefaultCommandLineHandler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DefaultCommandLineHandler
impl StructuralEq for DefaultCommandLineHandler
impl StructuralPartialEq for DefaultCommandLineHandler
Auto Trait Implementations§
impl RefUnwindSafe for DefaultCommandLineHandler
impl Send for DefaultCommandLineHandler
impl Sync for DefaultCommandLineHandler
impl Unpin for DefaultCommandLineHandler
impl UnwindSafe for DefaultCommandLineHandler
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