Enum jsonrpc_core::id::Id [] [src]

pub enum Id {
    Null,
    Str(String),
    Num(u64),
}

Variants

NullStr(String)Num(u64)

Trait Implementations

impl Debug for Id
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 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.