pub struct CliMeta {
pub name: String,
pub description: String,
pub version: Option<String>,
pub usage: Option<String>,
}Expand description
Should be used when describing your cli app, this will show up in your help message
Fields§
§name: StringThe name or executable name of your app. Preferably this should be your executable for the reason of clarity.
description: StringThe description of your app, for example this could include what the usecase for this executable can be
version: Option<String>.
usage: Option<String>.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliMeta
impl RefUnwindSafe for CliMeta
impl Send for CliMeta
impl Sync for CliMeta
impl Unpin for CliMeta
impl UnwindSafe for CliMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more