pub fn generate(
descriptor_set: &[u8],
out_dir: &Path,
) -> Result<(), CodegenError>Expand description
Writes cli.rs to out_dir: a command per method of descriptor_set, an encoded
FileDescriptorSet with its custom options.
§Errors
CodegenError for a method without a cli, a summary or an example, or with a command
that clashes with another’s; an example its request’s schema refuses; a field whose json_name
is not its snake_case name (D78); a type the generator does not know; a set that does not
decode; and cli.rs not written.