Skip to main content

generate_service_client

Function generate_service_client 

Source
pub fn generate_service_client(
    service_name: &str,
    resources: &[ResourceDefinition],
) -> String
Expand description

Generate a typed inter-service client module for a set of resources.

The generated client provides type-safe methods for calling endpoints on a remote service, using the resource definitions as the contract. Type mismatches between services become compile errors.