use syn::parse::{Parse, ParseStream, Result}; use syn::{Path, Token, Type}; pub struct DeclareInterfaceArgs { pub implementation: Type, pub interface: Path, } impl Parse for DeclareInterfaceArgs { fn parse(input: ParseStream) -> Result { let implementation: Type = input.parse()?; input.parse::]>()?; Ok(Self { implementation, interface: input.parse()?, }) } }