pub struct SubcommandEntry {
pub effect: Effect,
pub flags: FlagSchema,
pub env_gates: Vec<EnvGate>,
pub paths: PathSpec,
pub subcommands: SubcommandMap,
}Expand description
A subcommand’s knowledge: its effect, flags, env gates, path semantics, and optional nested subcommands for multi-level commands.
Fields§
§effect: Effect§flags: FlagSchema§env_gates: Vec<EnvGate>§paths: PathSpec§subcommands: SubcommandMapTrait Implementations§
Source§impl Clone for SubcommandEntry
impl Clone for SubcommandEntry
Source§fn clone(&self) -> SubcommandEntry
fn clone(&self) -> SubcommandEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubcommandEntry
impl Debug for SubcommandEntry
Source§impl<'de> Deserialize<'de> for SubcommandEntry
impl<'de> Deserialize<'de> for SubcommandEntry
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 SubcommandEntry
impl RefUnwindSafe for SubcommandEntry
impl Send for SubcommandEntry
impl Sync for SubcommandEntry
impl Unpin for SubcommandEntry
impl UnsafeUnpin for SubcommandEntry
impl UnwindSafe for SubcommandEntry
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