pub trait Method {
// Required methods
fn name(&self) -> String;
fn description(&self) -> String;
fn help(&self) -> String;
}
Expand description
This trait is used for providing basic information about a method struct This can be derived using the derive macro from the new_home_application_macro crate.
Required Methods§
Sourcefn name(&self) -> String
fn name(&self) -> String
This method provides a name for the method. It is used to identify the method when its called
When using the derive macro the value returned here is a snake_case version of the struct name.
Sourcefn description(&self) -> String
fn description(&self) -> String
Returns a couple words as a description for the method. For more detailed “helpful” info use the help method.
When derived, this field will be filled from the #description
attribute