Expand description
Proc-macro derive for buffa_reflect::ReflectMessage.
See the buffa-reflect crate documentation for the full reflection API.
This crate is exposed transparently through the default derive feature
of buffa-reflect.
§Recognized attributes
The macro reads #[buffa_reflect(...)] attributes on the annotated type.
Exactly one of the two descriptor-binding keys must appear:
| key | value |
|---|---|
descriptor_pool | Rust expression yielding &buffa_reflect::DescriptorPool |
file_descriptor_set_bytes | Rust expression yielding &[u8] (a serialized FDS) |
message_name | Fully-qualified proto name, e.g. "acme.api.v1.User" |
buffa-reflect-build injects all three on every generated message; you
rarely need to write them by hand.
Derive Macros§
- Reflect
Message - Derive
buffa_reflect::ReflectMessagefor the annotated message struct.