Struct diem_json_rpc_types::request::JsonRpcRequest
source · pub struct JsonRpcRequest {
pub method_request: MethodRequest,
pub id: Id,
/* private fields */
}
Fields§
§method_request: MethodRequest
§id: Id
Implementations§
source§impl JsonRpcRequest
impl JsonRpcRequest
pub fn from_value( value: Value ) -> Result<Self, (JsonRpcError, Option<Method>, Option<Id>)>
Trait Implementations§
source§impl Clone for JsonRpcRequest
impl Clone for JsonRpcRequest
source§fn clone(&self) -> JsonRpcRequest
fn clone(&self) -> JsonRpcRequest
Returns a copy 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 moresource§impl Debug for JsonRpcRequest
impl Debug for JsonRpcRequest
source§impl<'de> Deserialize<'de> for JsonRpcRequest
impl<'de> Deserialize<'de> for JsonRpcRequest
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 RefUnwindSafe for JsonRpcRequest
impl Send for JsonRpcRequest
impl Sync for JsonRpcRequest
impl Unpin for JsonRpcRequest
impl UnwindSafe for JsonRpcRequest
Blanket Implementations§
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.