Derive Macro derive_getters::Getters

source ·
#[derive(Getters)]
{
    // Attributes available to this derive:
    #[getter]
}
Expand description

Generate getter methods for all named struct fields in a seperate struct impl block. Getter methods share the name of the field they’re ‘getting’. Methods return an immutable reference to the field.