pub struct JsonRpcMethod {
pub source: JsonRpcMethodSource,
pub kind: JsonRpcMethodKind,
pub name: String,
pub rpc_name: String,
pub annotations: Vec<Annotation>,
pub request_fields: Vec<JsonRpcField>,
pub response_fields: Vec<JsonRpcField>,
pub response_kind: JsonRpcResponseKind,
pub stream_item: Option<TypeSpec>,
}Fields§
§source: JsonRpcMethodSource§kind: JsonRpcMethodKind§name: String§rpc_name: String§annotations: Vec<Annotation>§request_fields: Vec<JsonRpcField>§response_fields: Vec<JsonRpcField>§response_kind: JsonRpcResponseKind§stream_item: Option<TypeSpec>Trait Implementations§
Source§impl Clone for JsonRpcMethod
impl Clone for JsonRpcMethod
Source§fn clone(&self) -> JsonRpcMethod
fn clone(&self) -> JsonRpcMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonRpcMethod
impl Debug for JsonRpcMethod
Source§impl<'de> Deserialize<'de> for JsonRpcMethod
impl<'de> Deserialize<'de> for JsonRpcMethod
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 Freeze for JsonRpcMethod
impl RefUnwindSafe for JsonRpcMethod
impl Send for JsonRpcMethod
impl Sync for JsonRpcMethod
impl Unpin for JsonRpcMethod
impl UnsafeUnpin for JsonRpcMethod
impl UnwindSafe for JsonRpcMethod
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