Struct protoc_rust_grpc::Codegen [−][src]
Utility to generate .rs
files.
Implementations
impl Codegen
[src]
pub fn new() -> Codegen
[src]
Create new codegen object.
pub fn out_dir(&mut self, out_dir: impl AsRef<Path>) -> &mut Self
[src]
Set --LANG_out=...
param
pub fn include(&mut self, include: impl AsRef<Path>) -> &mut Self
[src]
Append a path to -I
args
pub fn includes(
&mut self,
includes: impl IntoIterator<Item = impl AsRef<Path>>
) -> &mut Self
[src]
&mut self,
includes: impl IntoIterator<Item = impl AsRef<Path>>
) -> &mut Self
Append multiple paths to -I
args
pub fn input(&mut self, input: impl AsRef<Path>) -> &mut Self
[src]
Append a .proto
file path to compile
pub fn inputs(
&mut self,
inputs: impl IntoIterator<Item = impl AsRef<Path>>
) -> &mut Self
[src]
&mut self,
inputs: impl IntoIterator<Item = impl AsRef<Path>>
) -> &mut Self
Append multiple .proto
file paths to compile
pub fn rust_protobuf(&mut self, rust_protobuf: bool) -> &mut Self
[src]
Generate rust-protobuf files along with rust-gprc
pub fn rust_protobuf_customize(
&mut self,
rust_protobuf_customize: Customize
) -> &mut Self
[src]
&mut self,
rust_protobuf_customize: Customize
) -> &mut Self
Generate rust-protobuf files along with rust-gprc
pub fn run(&self) -> Result<()>
[src]
Run the codegen.
Generate _grpc.rs
files, and if rust_protobuf_customize
is specified, generate rust-protobuf .rs
files too.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Codegen
impl Send for Codegen
impl Sync for Codegen
impl Unpin for Codegen
impl UnwindSafe for Codegen
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,