pub struct CommandTOML {
pub name: String,
pub help: String,
pub alias: Option<String>,
pub arg: Option<Vec<ArgTOML>>,
pub opt: Option<Vec<OptTOML>>,
pub subcommand: Option<Vec<CommandTOML>>,
pub add_target_opt: Option<bool>,
pub add_mode_opt: Option<bool>,
pub in_global_context: Option<bool>,
pub in_app_context: Option<bool>,
pub on_env: Option<Vec<String>>,
}Fields§
§name: String§help: String§alias: Option<String>§arg: Option<Vec<ArgTOML>>§opt: Option<Vec<OptTOML>>§subcommand: Option<Vec<CommandTOML>>§add_target_opt: Option<bool>§add_mode_opt: Option<bool>§in_global_context: Option<bool>§in_app_context: Option<bool>§on_env: Option<Vec<String>>Trait Implementations§
Source§impl Clone for CommandTOML
impl Clone for CommandTOML
Source§fn clone(&self) -> CommandTOML
fn clone(&self) -> CommandTOML
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 Debug for CommandTOML
impl Debug for CommandTOML
Source§impl<'de> Deserialize<'de> for CommandTOML
impl<'de> Deserialize<'de> for CommandTOML
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandTOML
impl RefUnwindSafe for CommandTOML
impl Send for CommandTOML
impl Sync for CommandTOML
impl Unpin for CommandTOML
impl UnwindSafe for CommandTOML
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,
§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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