#[derive(AttributeOptions)]
{
    // Attributes available to this derive:
    #[attr_opts]
}
Available on crate features derive and attr_parse only.
Expand description

Derive the AttributeOptions trait for a struct.

Options
#[attr_opts(rename = "new_ident")]Use this ident when parsing instead of the struct field’s name
#[attr_opts(default = some_module::default_fn)]Use this function for the default value
#[attr_opts(default = false)]Make this option required and error if it isn’t provided

The alternative syntax is fine too, #[attr_opts(default(false))]