Struct diem_json_rpc_types::stream::request::StreamJsonRpcRequest
source · pub struct StreamJsonRpcRequest {
pub method_request: StreamMethodRequest,
pub id: Id,
/* private fields */
}
Fields§
§method_request: StreamMethodRequest
§id: Id
Implementations§
source§impl StreamJsonRpcRequest
impl StreamJsonRpcRequest
pub fn new(method_request: StreamMethodRequest, id: Id) -> Self
pub fn method_name(&self) -> &'static str
Trait Implementations§
source§impl Clone for StreamJsonRpcRequest
impl Clone for StreamJsonRpcRequest
source§fn clone(&self) -> StreamJsonRpcRequest
fn clone(&self) -> StreamJsonRpcRequest
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 StreamJsonRpcRequest
impl Debug for StreamJsonRpcRequest
source§impl<'de> Deserialize<'de> for StreamJsonRpcRequest
impl<'de> Deserialize<'de> for StreamJsonRpcRequest
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
source§impl FromStr for StreamJsonRpcRequest
impl FromStr for StreamJsonRpcRequest
§type Err = (JsonRpcError, Option<StreamMethod>, Option<Id>)
type Err = (JsonRpcError, Option<StreamMethod>, Option<Id>)
The associated error which can be returned from parsing.
Auto Trait Implementations§
impl RefUnwindSafe for StreamJsonRpcRequest
impl Send for StreamJsonRpcRequest
impl Sync for StreamJsonRpcRequest
impl Unpin for StreamJsonRpcRequest
impl UnwindSafe for StreamJsonRpcRequest
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.