let’s take a further look at function like procedural macro
Let’s use the knowledge to tackle our proble:
Understand the crucial macro
the code is
understand is line by line:
there it use
parse_macro_input
to parse the input to the Input struct.So
Input
struct should implement the required parse
traitbelow is the code in drone: