pub struct ListDevicesCommand {
pub device: Option<String>,
pub select: bool,
pub verbose: bool,
pub exact: bool,
pub fail_on_missing: bool,
pub unbound: bool,
}Fields§
§device: Option<String>device filter - either an exact topo path, or a fuzzy match on the device’s name.
select: boolif this exists, the user will be prompted for a component to select.
verbose: boollist all device properties.
exact: boolrequire an exact match on the device filter, instead of a substring match.
fail_on_missing: boolreturn a non-zero exit code if no matching devices are found.
unbound: boollist only unbound nodes.
Trait Implementations§
Source§impl ArgsInfo for ListDevicesCommand
impl ArgsInfo for ListDevicesCommand
Source§fn get_args_info() -> CommandInfoWithArgs
fn get_args_info() -> CommandInfoWithArgs
Returns the argument info.
Source§fn get_subcommands() -> Vec<SubCommandInfo<'static>>
fn get_subcommands() -> Vec<SubCommandInfo<'static>>
Returns the list of subcommands
Source§impl Debug for ListDevicesCommand
impl Debug for ListDevicesCommand
Source§impl FromArgs for ListDevicesCommand
impl FromArgs for ListDevicesCommand
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_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 ListDevicesCommand
impl PartialEq for ListDevicesCommand
Source§impl SubCommand for ListDevicesCommand
impl SubCommand for ListDevicesCommand
Source§const COMMAND: &'static CommandInfo
const COMMAND: &'static CommandInfo
Information about the subcommand.
impl StructuralPartialEq for ListDevicesCommand
Auto Trait Implementations§
impl Freeze for ListDevicesCommand
impl RefUnwindSafe for ListDevicesCommand
impl Send for ListDevicesCommand
impl Sync for ListDevicesCommand
impl Unpin for ListDevicesCommand
impl UnwindSafe for ListDevicesCommand
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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