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§
fn proto_schema() -> Service
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.