pub trait Handler {
type Output: Serialize;
// Required method
fn handle(
&mut self,
matches: &ArgMatches,
ctx: &CommandContext,
) -> HandlerResult<Self::Output>;
// Provided method
fn expected_args(&self) -> Vec<ExpectedArg> { ... }
}Required Associated Types§
Required Methods§
fn handle( &mut self, matches: &ArgMatches, ctx: &CommandContext, ) -> HandlerResult<Self::Output>
Provided Methods§
fn expected_args(&self) -> Vec<ExpectedArg>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".