Struct protoc::Protoc
[−]
[src]
pub struct Protoc { /* fields omitted */ }
Protoc command.
Methods
impl Protoc
[src]
fn from_env_path() -> Protoc
New protoc
command from $PATH
fn from_path(path: &str) -> Protoc
New protoc
command from specified path
fn check(&self) -> Result<()>
Check protoc
command found and valid
fn version(&self) -> Result<Version>
Obtain protoc
version
fn run(&self, args: Args) -> Result<()>
Execute configured protoc
with given args
fn write_descriptor_set(&self, args: DescriptorSetOutArgs) -> Result<()>
Execute protoc --descriptor_set_out=