logo
pub fn generate<T: Service>(
    service: &T,
    emit_package: bool,
    proto_path: &str,
    compile_well_known_types: bool,
    attributes: &Attributes
) -> TokenStream
Expand description

Generate service for Server.

This takes some Service and will generate a TokenStream that contains a public module containing the server service and handler trait.