Skip to content

Support flattening attributes #10

@ecton

Description

@ecton

Similar to #4, I'm adding a new attribute for ViewSchema and want to share the view() identifier name, so that all the parameters just live on the same level, but I can avoid repeating the shared attributes on both types. Using the same example from #4, what I would hope is for:

struct Attr {
   #[attribute(flatten)]
   shared: SharedAttributes
}

struct SharedAttributes {
    shared_key: String
}

Should parse

#[attr(shared_key = "hi")]

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