pub fn discover(descriptor_bytes: &[u8]) -> Result<ProtoMetadata>Expand description
Parse proto descriptor bytes and extract all RPC metadata.
Accepts raw FileDescriptorSet bytes (e.g., from buf build --as-file-descriptor-set
or tonic_build’s compiled descriptor). Returns metadata shared across all OpenAPI
patches.
§Errors
Returns an error if the descriptor bytes cannot be decoded.