pub enum ConfigSubcommand {
Show(ConfigShowCommand),
Modules(ConfigModulesCommand),
TypeSlots(ConfigTypeSlotsCommand),
Set(ConfigSetCommand),
Unset(ConfigUnsetCommand),
AddEntry(ConfigAddEntryCommand),
AddModule(ConfigAddModuleCommand),
RmModule(ConfigRmModuleCommand),
SetTypeSlot(ConfigSetTypeSlotCommand),
RmTypeSlot(ConfigRmTypeSlotCommand),
}Variants§
Show(ConfigShowCommand)
show project configuration values and entries
Modules(ConfigModulesCommand)
list modules included in the project
TypeSlots(ConfigTypeSlotsCommand)
list entry-level type-slot bindings
Set(ConfigSetCommand)
set a configuration key to a value (package, mode, target, init-fn, reload-fn, description, feature-policy.
Unset(ConfigUnsetCommand)
unset target, or remove a named entry with an explicit –entry
AddEntry(ConfigAddEntryCommand)
create a named entry with a complete configuration, or clone one with –from
AddModule(ConfigAddModuleCommand)
add a module path to an entry’s modules
RmModule(ConfigRmModuleCommand)
remove a module path from an entry’s modules
SetTypeSlot(ConfigSetTypeSlotCommand)
bind a type slot to a full namespace/definition path
RmTypeSlot(ConfigRmTypeSlotCommand)
remove an entry-level type-slot binding
Trait Implementations§
Source§impl Clone for ConfigSubcommand
impl Clone for ConfigSubcommand
Source§impl Debug for ConfigSubcommand
impl Debug for ConfigSubcommand
Source§impl FromArgs for ConfigSubcommand
impl FromArgs for ConfigSubcommand
Source§fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
command_name: &[&str],
args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( command_name: &[&str], args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for ConfigSubcommand
impl PartialEq for ConfigSubcommand
impl StructuralPartialEq for ConfigSubcommand
Source§impl SubCommands for ConfigSubcommand
impl SubCommands for ConfigSubcommand
Source§const COMMANDS: &'static [&'static CommandInfo]
const COMMANDS: &'static [&'static CommandInfo]
Info for the commands.
Source§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.
Auto Trait Implementations§
impl Forget for ConfigSubcommand
impl Freeze for ConfigSubcommand
impl Move for ConfigSubcommand
impl RefUnwindSafe for ConfigSubcommand
impl Send for ConfigSubcommandwhere
RawVecInner: Send,
impl Sync for ConfigSubcommandwhere
RawVecInner: Sync,
impl Unpin for ConfigSubcommand
impl UnsafeUnpin for ConfigSubcommand
impl UnwindSafe for ConfigSubcommandwhere
RawVecInner: UnwindSafe,
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