Enum jsonrpc_core::id::Id
[−]
[src]
pub enum Id { Null, Str(String), Num(u64), }
Request Id
Variants
Null
No id (notification)
Str(String)
String id
Num(u64)
Numeric id
Trait Implementations
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 Debug for Id
[src]
impl Serialize for Id
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Deserialize for Id
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Id, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.