Enum jsonrpc_lite::Id [] [src]

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

An identifier established by the Client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification. The value SHOULD normally not be Null and Numbers SHOULD NOT contain fractional parts

Variants

Trait Implementations

impl Clone for Id
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Id
[src]

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 Debug for Id
[src]

Formats the value using the given formatter.

impl ToJson for Id
[src]

Represent self as a serde_json::Value. Note that Value is not a JSON string. If you need a string, use serde_json::to_string instead. Read more