pub trait ProtoPathResolver: Display {
    fn resolve(&self, path: &ProtoPath) -> Result<Option<ResolvedProtoFile>>;
}
Expand description

Resolve .proto files. Display is used for error messages.

Required methods

Resolve a .proto file.

Return None if a path is unknown, and if a path is a built-in protobuf file, like google/protobuf/descriptor.proto, it will be handled by the library.

Implementors