pub trait SchemaServiceShape: ServiceShape {
const SCHEMA: &'static ServiceSchema<'static>;
}Expand description
Connects a typed service to its shared schema descriptor.
Schema-generated services implement this trait in addition to ServiceShape.
The descriptor contains the service’s identity, version, protocols, and operation schemas.
Required Associated Constants§
Sourceconst SCHEMA: &'static ServiceSchema<'static>
const SCHEMA: &'static ServiceSchema<'static>
The shared descriptor for this 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.