Enum jsonrpc::jsonrpc_common::Id
[−]
[src]
pub enum Id { Number(u64), String(String), Null, }
A JSON RPC Id Note: only supports u64 numbers
Variants
Number(u64)
String(String)
Null
Trait Implementations
impl Debug for Id
[src]
impl Clone for Id
[src]
fn clone(&self) -> Id
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Id
[src]
fn eq(&self, __arg_0: &Id) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Id) -> bool
This method tests for !=
.
impl Eq for Id
[src]
impl Hash for Id
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Id
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where
S: Serializer,
S: Serializer,
Serializes this value into this serializer.
impl Deserialize for Id
[src]
fn deserialize<DE>(deserializer: &mut DE) -> Result<Self, DE::Error> where
DE: Deserializer,
DE: Deserializer,
Deserialize this value given this Deserializer
.