pub trait CliBindings<Context: Context>: HandlerTypes {
const NO_CLI: bool = false;
// Required methods
fn cli_command(&self) -> Command;
fn cli_parse(
&self,
matches: &ArgMatches,
) -> Result<(VecDeque<&'static str>, Value), Error>;
fn cli_display(
&self,
handle_args: HandlerArgsFor<Context, Self>,
result: Self::Ok,
) -> Result<(), Self::Err>;
}
Provided Associated Constants§
Required Methods§
fn cli_command(&self) -> Command
fn cli_parse( &self, matches: &ArgMatches, ) -> Result<(VecDeque<&'static str>, Value), Error>
fn cli_display( &self, handle_args: HandlerArgsFor<Context, Self>, result: Self::Ok, ) -> Result<(), Self::Err>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.