Struct prost_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: String
The service name in Rust style.
proto_name: String
The service name as it appears in the .proto file.
package: String
The package name as it appears in the .proto file.
comments: Comments
The service comments.
methods: Vec<Method>
The service methods.
options: ServiceOptions
The 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