pub enum JsonRpcId {
Number(i64),
String(String),
Null,
}Expand description
JSON-RPC id. Null is valid per spec for replies to un-parseable
requests. Absent id (request-without-id, i.e. a notification) is
None on the envelope’s id field.
Variants§
Trait Implementations§
impl Eq for JsonRpcId
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