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

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

Request Id

Variants

No id (notification)

String id

Numeric id

Trait Implementations

impl Debug for Id
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Id
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Id
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Id
[src]

[src]

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

1.3.0
[src]

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

impl Eq for Id
[src]

impl Serialize for Id
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'a> Deserialize<'a> for Id
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more