Trait relm4::actions::traits::ActionName
source · pub trait ActionName {
type Group: ActionGroupName;
type Target;
type State;
// Required method
fn name() -> &'static str;
// Provided method
fn action_name() -> String { ... }
}
Expand description
Define the name of an action.
Required Associated Types§
sourcetype Group: ActionGroupName
type Group: ActionGroupName
The group of this action.
Required Methods§
Provided Methods§
sourcefn action_name() -> String
fn action_name() -> String
The full action name (group.action).