Macro with_api
macro_rules! with_api {
($m:ident, $TokenStream: path, $Span: path, $Symbol: path) => { ... };
}
Higher-order macro describing the server RPC API, allowing automatic generation of type-safe Rust APIs, both client-side and server-side.
with_api!(my_macro, MyTokenStream, MySpan, MySymbol) expands to:
my_macro!
The second (TokenStream), third (Span) and fourth (Symbol)
argument serve to customize the argument/return types that need
special handling, to enable several different representations of
these types.