Skip to main content

document_schemas

Function document_schemas 

Source
pub fn document_schemas(
    share: &Share,
    root: &Path,
) -> Result<BTreeMap<String, ProtoFile>, Error>
Expand description

Every .proto document schema, from the distribution and then from the repository, keyed by the identity each declares. A repository may add a schema; it may not redefine one the distribution declares, and an attempt to is an error naming both files.