[−][src]Enum medusa::ArgType
Enum that define the type (or kind) of option arguments.
There are 2 types of this variant: Flag
and Content
.
Flag
means that your arguments are only a variable that tells
if it is exist (true
) or not (false
), since it only contains
boolean value.
For example, option parameter --wait
will make your CLI
program wait until the process are finished, otherwise it will
run as a background process. Here, option --wait
will have
value of true
because it is called when executing the program.
Content
means that your arguments consist of a String
instance
that can be processed later (hence the name, Content
).
For example, option parameter --user nobody
will make your CLI
program run as user nobody
. Here, option --user
will have
argument value of nobody
since this argument is passed to the
option --user
.
Variants
Flag(bool)
Content(String)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArgType
impl Send for ArgType
impl Sync for ArgType
impl Unpin for ArgType
impl UnwindSafe for ArgType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,