pub trait CliSources<Args> {
// Required method
fn cli_arguments(&self, names: &'static [&'static str]) -> Vec<ArgumentInfo>;
}Expand description
States that a declared product of sources supplies exactly the operation arguments Args.
The sources are written in the order of the operation’s arguments, one each, so a missing, extra, or mismatched source fails to compile.
Required Methods§
Sourcefn cli_arguments(&self, names: &'static [&'static str]) -> Vec<ArgumentInfo>
fn cli_arguments(&self, names: &'static [&'static str]) -> Vec<ArgumentInfo>
Describes every argument, named by the operation’s names, in order.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".