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