method

Attribute Macro method 

Source
#[method]
Expand description

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.

Refer to document of attr macro #[service]