tsgo_rs_core 0.1.0

Shared errors, process lifecycle helpers, and fast-path primitives for tsgo-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::fast::CompactString;
use serde::{Deserialize, Serialize};
use serde_json::Value;

#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct RpcResponseError {
    pub code: i64,
    pub message: CompactString,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub data: Option<Value>,
}