MCPcopy Create free account
hub / github.com/dfinity/orbit / with_middleware

Function with_middleware

libs/orbit-essentials-macros/src/lib.rs:83–94  ·  view source on GitHub ↗
(input_args: TokenStream, input: TokenStream)

Source from the content-addressed store, hash-verified

81/// - The macro is designed to work with asynchronous functions.
82#[proc_macro_attribute]
83pub fn with_middleware(input_args: TokenStream, input: TokenStream) -> TokenStream {
84 utils::handle_macro_errors(
85 |input_args, input| {
86 let macro_impl = macros::with_middleware::WithMiddlewareMacro::new(input_args, input);
87
88 macro_impl.build()
89 },
90 macros::with_middleware::WithMiddlewareMacro::MACRO_NAME,
91 input_args,
92 input,
93 )
94}
95
96/// The `storable` procedural macro is designed to generate serialization and deserialization
97/// implementations for a given struct or enum. It allows for the serialization format to be

Callers

nothing calls this directly

Calls 2

handle_macro_errorsFunction · 0.85
buildMethod · 0.45

Tested by

no test coverage detected