Struct prost_msg_build::Service
source · [−]pub struct Service {
pub name: String,
pub proto_name: String,
pub package: String,
pub comments: Comments,
pub methods: Vec<Method>,
pub options: ServiceOptions,
}Expand description
A service descriptor.
Fields
name: StringThe service name in Rust style.
proto_name: StringThe service name as it appears in the .proto file.
package: StringThe package name as it appears in the .proto file.
comments: CommentsThe service comments.
methods: Vec<Method>The service methods.
options: ServiceOptionsThe service options.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more