pub struct Cli {
pub name: &'static str,
pub version: &'static str,
pub about: &'static str,
pub author: &'static str,
pub argv: Vec<String>,
}
Expand description
A struct used to define how the CLI should be generated
See the cli!
macro for a more convenient way to initialize this struct.
Fields§
§name: &'static str
The name of the program
version: &'static str
The version of the program
about: &'static str
The about of the program
The author of the program
argv: Vec<String>
The arguments passed to the program
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
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