Get Each Field Attributes Using Darling Crate

Hi,

Considering this code:

#[derive(MyMacro)]
struct Point {
    #[myattr(test1(arg1 = 0, arg2 = 10))]
    x: u8,
    #[myattr(test2(arg1 = "Hello, World!")]
    y: u8,
}

How can I get each field attributes when iterating over fields and map to a struct deriving from darling traits?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.