pub struct MeshServiceGenerator { /* private fields */ }
Expand description
A service generator for mesh services.
Implementations§
Source§impl MeshServiceGenerator
impl MeshServiceGenerator
Sourcepub fn replace_type(self, ty: &str, replacement: &str) -> Self
pub fn replace_type(self, ty: &str, replacement: &str) -> Self
Configures the generator to replace any instance of Rust ty
with
replacement
.
This can be useful when some input or output messages already have mesh types defined, and you want to use them instead of the generated prost types.
Trait Implementations§
Source§impl ServiceGenerator for MeshServiceGenerator
impl ServiceGenerator for MeshServiceGenerator
Auto Trait Implementations§
impl Freeze for MeshServiceGenerator
impl RefUnwindSafe for MeshServiceGenerator
impl !Send for MeshServiceGenerator
impl !Sync for MeshServiceGenerator
impl Unpin for MeshServiceGenerator
impl UnwindSafe for MeshServiceGenerator
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