#[derive(Actor)]
Expand description
Derive macro implementing the Actor trait with default behaviour.
The Actor::name is implemented using the actor’s ident.
This trait has no customizability, and is only a convenience macro for implementing Actor
.
If you’d like to override the default behaviour, you should implement the Actor
trait manually.
§Example
use kameo::Actor;
#[derive(Actor)]
struct MyActor { }
assert_eq!(MyActor { }.name(), "MyActor");