pub enum JsonRpcId {
String(String),
Number(i64),
Null,
}Expand description
A JSON-RPC ID that can be a string, integer, or null.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonRpcId
impl<'de> Deserialize<'de> for JsonRpcId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for JsonRpcId
Auto Trait Implementations§
impl Freeze for JsonRpcId
impl RefUnwindSafe for JsonRpcId
impl Send for JsonRpcId
impl Sync for JsonRpcId
impl Unpin for JsonRpcId
impl UnsafeUnpin for JsonRpcId
impl UnwindSafe for JsonRpcId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more