[−][src]Derive Macro interact_derive::Interact
#[derive(Interact)] { // Attributes available to this derive: #[interact] }
Attributes that Interact derive macro supports
Type context:
ⓘThis example is not tested
#[interact(mut_fn(function_name(param_a, param_b)))
#[interact(immut_fn(function_name(param_a, param_b)))
Per field:
The ignore attribute allows to make some fields invisible:
ⓘThis example is not tested
#[interact(ignore))
The downside is that having any ignored field on a type means that it is unbuildable, and
therefore cannot be passed as value to functions or to be assigned using =
in
an expression.