Struct goxlr_client::cli::Cli
source · [−]pub struct Cli {
pub device: Option<String>,
pub status: bool,
pub status_json: bool,
pub microphone_controls: MicrophoneControls,
pub subcommands: Option<SubCommands>,
}
Fields
device: Option<String>
The specific device’s serial number to execute commands on. This field is optional if you have exactly one GoXLR, but required if you have more.
status: bool
Display the device information after any subcommands have been executed.
status_json: bool
Display device information as JSON after command..
microphone_controls: MicrophoneControls
subcommands: Option<SubCommands>
Trait Implementations
sourceimpl Args for Cli
impl Args for Cli
sourcefn augment_args<'b>(__clap_app: App<'b>) -> App<'b>
fn augment_args<'b>(__clap_app: App<'b>) -> App<'b>
Append to [App
] so it can instantiate Self
. Read more
sourcefn augment_args_for_update<'b>(__clap_app: App<'b>) -> App<'b>
fn augment_args_for_update<'b>(__clap_app: App<'b>) -> App<'b>
Append to [App
] so it can update self
. Read more
sourceimpl FromArgMatches for Cli
impl FromArgMatches for Cli
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from [ArgMatches
], parsing the arguments as needed. Read more
sourcefn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
Assign values from ArgMatches
to self
.
sourceimpl Parser for Cli
impl Parser for Cli
fn parse() -> Self
fn parse() -> Self
Parse from std::env::args_os()
, exit on error
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I) where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
fn clap<'help>() -> App<'help>
fn clap<'help>() -> App<'help>
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)
Deprecated, StructOpt::clap
replaced with [IntoApp::into_app
] (derive as part of
[Parser
]) Read more
fn from_clap(matches: &ArgMatches) -> Self
fn from_clap(matches: &ArgMatches) -> Self
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)
Deprecated, StructOpt::from_clap
replaced with [FromArgMatches::from_arg_matches
] (derive as part of
[Parser
]) Read more
fn from_args() -> Self
fn from_args() -> Self
StructOpt::from_args
is replaced with Parser::parse
(note the change in derives)
Deprecated, StructOpt::from_args
replaced with Parser::parse
(note the change in derives)
fn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
StructOpt::from_args_safe
is replaced with Parser::try_parse
(note the change in derives)
Deprecated, StructOpt::from_args_safe
replaced with Parser::try_parse
(note the change in derives)
fn from_iter<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter<I, T>(itr: I) -> Self where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
StructOpt::from_iter
is replaced with Parser::parse_from
(note the change in derives)
Deprecated, StructOpt::from_iter
replaced with Parser::parse_from
(note the change in derives)
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error> where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
StructOpt::from_iter_safe
is replaced with Parser::try_parse_from
(note the change in derives)
Deprecated, StructOpt::from_iter_safe
replaced with Parser::try_parse_from
(note the
change in derives) Read more
Auto Trait Implementations
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more