Skip to main content

ProtoService

Trait ProtoService 

Source
pub trait ProtoService {
    // Required method
    fn proto_schema() -> Service;
}
Expand description

A trait that enables the generation of a protobuf service schema.

Implemented by the enums annotated with the proto_service macro.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§