pub struct ModuleRequest { /* private fields */ }Expand description
A code generation request for a specific module
Implementations§
Source§impl ModuleRequest
impl ModuleRequest
Sourcepub fn proto_package_name(&self) -> &str
pub fn proto_package_name(&self) -> &str
The protobuf package name for this module
Sourcepub fn output_filename(&self) -> Option<&str>
pub fn output_filename(&self) -> Option<&str>
The output filename for this module
pub fn output_dir(&self) -> String
pub fn output_filepath(&self) -> Option<String>
Sourcepub fn files(&self) -> impl Iterator<Item = &FileDescriptorProto>
pub fn files(&self) -> impl Iterator<Item = &FileDescriptorProto>
An iterator of the file descriptors
Auto Trait Implementations§
impl Freeze for ModuleRequest
impl RefUnwindSafe for ModuleRequest
impl Send for ModuleRequest
impl Sync for ModuleRequest
impl Unpin for ModuleRequest
impl UnwindSafe for ModuleRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more