Attribute Macro effect

Source
#[effect]
Expand description

Generates an effect type matching the enum definition provided, whilst supplying all the necessary decorations and additional trait implementations.

Use typegen as an argument if you want to opt in to the built-in foreign type generation.

e.g.

#[effect(typegen)]
pub enum MyEffect {
    Render(RenderOperation),
    Http(HttpRequest),
}