Skip to main content

text_document_macros/
lib.rs

1// Generated by Qleany v1.4.8 from macros_lib.tera
2
3mod direct_access;
4
5use proc_macro::TokenStream;
6
7/// This macro is used to generate a unit of work (UoW) action for a given entity (e.g. Root)
8/// and specific action (e.g., create, update). Apply to a trait or an impl block.
9/// ex: #[unit_of_work::uow_action(entity = "Root", action = "Create", thread_safe = true)]
10#[proc_macro_attribute]
11pub fn uow_action(args: TokenStream, input: TokenStream) -> TokenStream {
12    direct_access::uow_action_impl(args, input)
13}