Skip to content

Custom attributes to define all kinds of stuff #2

@dogamak

Description

@dogamak

Attributes for

  • defining the name of the module containing the unit structs.
  • passing attributes to the generated unit structs.

Attributes defined on the original struct would be passed down to all unit structs and ones defined on the fields passed down to the unit struct corresponding to that field.

#[dynaccess(module = "dog_fields", field_attrs(derive(Clone)))]
#[derive(Dynaccess)]
struct Dog {
    #[dynaccess(attrs(derive(Debug)))]
    pub name: String
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions