Struct diem_sdk::client::stream::request::StreamJsonRpcRequest
pub struct StreamJsonRpcRequest {
pub method_request: StreamMethodRequest,
pub id: Id,
/* private fields */
}
Fields§
§method_request: StreamMethodRequest
§id: Id
Implementations§
§impl StreamJsonRpcRequest
impl StreamJsonRpcRequest
pub fn new(method_request: StreamMethodRequest, id: Id) -> StreamJsonRpcRequest
pub fn method_name(&self) -> &'static str
Trait Implementations§
§impl Clone for StreamJsonRpcRequest
impl Clone for StreamJsonRpcRequest
§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 more§impl Debug for StreamJsonRpcRequest
impl Debug for StreamJsonRpcRequest
§impl<'de> Deserialize<'de> for StreamJsonRpcRequest
impl<'de> Deserialize<'de> for StreamJsonRpcRequest
§fn deserialize<__D>(
__deserializer: __D
) -> Result<StreamJsonRpcRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<StreamJsonRpcRequest, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§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.
§fn from_str(
string: &str
) -> Result<StreamJsonRpcRequest, (JsonRpcError, Option<StreamMethod>, Option<Id>)>
fn from_str( string: &str ) -> Result<StreamJsonRpcRequest, (JsonRpcError, Option<StreamMethod>, Option<Id>)>
Parses a string
s
to return a value of this type. Read more§impl Serialize for StreamJsonRpcRequest
impl Serialize for StreamJsonRpcRequest
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.