pub struct JsonRpcResponse {
pub result: Vec<JsonRpcResponseData>,
}Expand description
JsonRPC 响应数据
Fields§
§result: Vec<JsonRpcResponseData>Implementations§
Source§impl JsonRpcResponse
impl JsonRpcResponse
pub fn new() -> Self
Sourcepub fn add_data(&mut self, data: JsonRpcResponseData)
pub fn add_data(&mut self, data: JsonRpcResponseData)
添加响应数据
Sourcepub fn to_unicode_string(&self) -> Result<String, LauncherError>
pub fn to_unicode_string(&self) -> Result<String, LauncherError>
有中文会报错,使用unicode转义
Trait Implementations§
Source§impl Debug for JsonRpcResponse
impl Debug for JsonRpcResponse
Auto Trait Implementations§
impl Freeze for JsonRpcResponse
impl RefUnwindSafe for JsonRpcResponse
impl Send for JsonRpcResponse
impl Sync for JsonRpcResponse
impl Unpin for JsonRpcResponse
impl UnwindSafe for JsonRpcResponse
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