1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use syn::parse::{Parse, ParseStream}; use syn::TypePath; pub struct InjectableMacroArgs { pub interface: TypePath, } impl Parse for InjectableMacroArgs { fn parse(input: ParseStream) -> syn::Result<Self> { Ok(Self { interface: input.parse()?, }) } }