[][src]Function tonic_build::client::generate

pub fn generate<T: Service>(service: &T, proto_path: &str) -> TokenStream

Generate service for client.

This takes some Service and will generate a TokenStream that contains a public module with the generated client.