Crate occams_rpc_api_macros

Crate occams_rpc_api_macros 

Source

Attribute Macrosยง

endpoint_async
The #[endpoint_async] macro applies to a trait to generate a client for remote api calls for async context.
method
A marker attribute for methods in an inherent impl block that should be exposed as RPC methods. This is not needed when using a trait-based implementation.
service
The #[service] macro is applied to an impl block to automatically generate the ServiceTrait implementation for the type.
service_mux_struct
The #[service_mux_struct] macro is applied to a struct to implement ServiceTrait on it. It acts as a dispatcher, routing serve() calls to the correct service based on the req.service field.