Enum jsonrpc_lite::Id [] [src]

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

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 From<()> for Id
[src]

Performs the conversion.

impl From<i64> for Id
[src]

Performs the conversion.

impl From<String> for Id
[src]

Performs the conversion.