service_impl

Attribute Macro service_impl 

Source
#[service_impl]
Expand description

Processes an entire impl block and auto-generates RPC handler registration.

This is the advanced version that automatically discovers all #[service_method] functions and generates the complete handler registration code.

§Example

#[service_definition]
pub struct UserService;

#[service_impl]
impl UserService {
    #[service_method("GET /users/:id")]
    pub async fn get_user(user_id: u32) -> Result<User, String> { ... }
}