Enum jsonrpc::jsonrpc_common::Id [] [src]

pub enum Id {
    Number(u64),
    String(String),
    Null,
}

A JSON RPC Id Note: only supports u64 numbers

Variants

Trait Implementations

impl Debug for Id
[src]

Formats the value using the given formatter.

impl Clone for Id
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Id
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Id
[src]

impl Hash for Id
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for Id
[src]

Serializes this value into this serializer.

impl Deserialize for Id
[src]

Deserialize this value given this Deserializer.

impl Display for Id
[src]

Formats the value using the given formatter. Read more