pub enum JsonRpcId {
String(String),
Number(i64),
Null,
}
Expand description
JSON-RPC ID type for better type safety
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonRpcId
impl<'de> Deserialize<'de> for JsonRpcId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 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