Thalweg · API reference ← Main docs

descriptor_set_to_schema_model

Function descriptor_set_to_schema_model 

Source
pub fn descriptor_set_to_schema_model(
    pb: &[u8],
) -> Result<SchemaModel, BridgeError>
Expand description

Decode a FileDescriptorSet into the neutral schema model.

§Errors

BridgeError::Decode if the bytes are not a valid FileDescriptorSet.