Enum jsonrpc_core::types::id::Id
[−]
[src]
pub enum Id { Null, Str(String), Num(u64), }
Request Id
Variants
Null
No id (notification)
Str(String)
String id
Num(u64)
Numeric id
Trait Implementations
impl Debug for Id
[src]
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 Clone for Id
[src]
fn clone(&self) -> Id
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for Id
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for Id
[src]
impl Serialize for Id
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Deserialize<'a> for Id
[src]
fn deserialize<D>(deserializer: D) -> Result<Id, D::Error> where
D: Deserializer<'a>,
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more