aboutsummaryrefslogtreecommitdiff
path: root/syrette_macros/src/injectable_macro_args.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-17 14:55:41 +0200
committerHampusM <hampus@hampusmat.com>2022-07-17 14:55:41 +0200
commit51e8d04c2299e6468213d8ee4f9e15d783094379 (patch)
tree77dd9436588a1fc8a15fbf7e8da7b8e7068bd0b1 /syrette_macros/src/injectable_macro_args.rs
parente906a0fc5922776b8ecd17e3100b24fc44cedf19 (diff)
refactor: reorganize and improve macros
Diffstat (limited to 'syrette_macros/src/injectable_macro_args.rs')
-rw-r--r--syrette_macros/src/injectable_macro_args.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/syrette_macros/src/injectable_macro_args.rs b/syrette_macros/src/injectable_macro_args.rs
new file mode 100644
index 0000000..4ef4389
--- /dev/null
+++ b/syrette_macros/src/injectable_macro_args.rs
@@ -0,0 +1,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()?,
+ })
+ }
+}