pub struct GrpcMethod {
pub service: String,
pub method: String,
pub method_type: GrpcMethodType,
pub handler: String,
}Expand description
gRPC service method definition
Fields§
§service: StringService name (e.g., “UserService”)
method: StringMethod name (e.g., “GetUser”)
method_type: GrpcMethodTypeMethod type (streaming mode)
handler: StringHandler name to call
Implementations§
Source§impl GrpcMethod
impl GrpcMethod
Trait Implementations§
Source§impl Clone for GrpcMethod
impl Clone for GrpcMethod
Source§fn clone(&self) -> GrpcMethod
fn clone(&self) -> GrpcMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GrpcMethod
impl RefUnwindSafe for GrpcMethod
impl Send for GrpcMethod
impl Sync for GrpcMethod
impl Unpin for GrpcMethod
impl UnwindSafe for GrpcMethod
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