pub struct ProtoRpcMethod {
pub name: String,
pub request_type: String,
pub response_type: String,
pub streaming: StreamingMode,
pub comments: Vec<String>,
}Expand description
Represents an RPC method in a gRPC service.
Fields§
§name: StringMethod name (e.g., “ProcessPayment”)
request_type: StringRequest message type
response_type: StringResponse message type
streaming: StreamingModeStreaming mode
comments: Vec<String>Documentation comments
Implementations§
Trait Implementations§
Source§impl Clone for ProtoRpcMethod
impl Clone for ProtoRpcMethod
Source§impl Debug for ProtoRpcMethod
impl Debug for ProtoRpcMethod
Source§impl<'de> Deserialize<'de> for ProtoRpcMethod
impl<'de> Deserialize<'de> for ProtoRpcMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ProtoRpcMethod
impl Freeze for ProtoRpcMethod
impl Move for ProtoRpcMethod
impl RefUnwindSafe for ProtoRpcMethod
impl Send for ProtoRpcMethodwhere
RawVecInner: Send,
impl Sync for ProtoRpcMethodwhere
RawVecInner: Sync,
impl Unpin for ProtoRpcMethod
impl UnsafeUnpin for ProtoRpcMethodwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ProtoRpcMethodwhere
RawVecInner: UnwindSafe,
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