Struct diem_sdk::client::stream::request::StreamJsonRpcRequest [−]
pub struct StreamJsonRpcRequest {
pub method_request: StreamMethodRequest,
pub id: Id,
// some fields omitted
}
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
pub fn clone(&self) -> StreamJsonRpcRequest
pub fn clone(&self) -> StreamJsonRpcRequest
Returns a copy of the value. Read more
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
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StreamJsonRpcRequest, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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.
pub fn from_str(
string: &str
) -> Result<StreamJsonRpcRequest, (JsonRpcError, Option<StreamMethod>, Option<Id>)>
pub 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
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more