Derive Macro Interact

Source
#[derive(Interact)]
{
    // Attributes available to this derive:
    #[interact]
}
Expand description

§Attributes that Interact derive macro supports

§Type context:

#[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:

#[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.