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§

source

type Group: ActionGroupName

The group of this action.

source

type Target

Target value type for passing values to this action.

Use [()] for actions without target value.

source

type State

State type of this action.

Use [()] for stateless actions.

Required Methods§

source

fn name() -> &'static str

Returns the actions name.

Provided Methods§

source

fn action_name() -> String

The full action name (group.action).

Implementors§