pub trait CliDecodeSources<Args, Decoder, Error> {
// Required method
fn cli_decode(
&self,
arguments: &[ArgumentInfo],
decoder: &Decoder,
) -> Result<Args, CliArgumentError<Error>>;
}Expand description
Decodes the operation arguments Args through declared sources, with Decoder.
Required Methods§
Sourcefn cli_decode(
&self,
arguments: &[ArgumentInfo],
decoder: &Decoder,
) -> Result<Args, CliArgumentError<Error>>
fn cli_decode( &self, arguments: &[ArgumentInfo], decoder: &Decoder, ) -> Result<Args, CliArgumentError<Error>>
Decodes every argument from the words decoder gives for it, reading the arguments these
sources were described as, in order.
§Errors
Answers with the first argument whose words do not make its value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".