Struct yedb::common::JSONRpcResponse
source · [−]pub struct JSONRpcResponse<T: Serialize> {
pub id: Value,
pub result: Option<T>,
pub error: Option<Error>,
/* private fields */
}
Fields
id: Value
result: Option<T>
error: Option<Error>
Trait Implementations
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
Auto Trait Implementations
impl<T> RefUnwindSafe for JSONRpcResponse<T> where
T: RefUnwindSafe,
impl<T> Send for JSONRpcResponse<T> where
T: Send,
impl<T> Sync for JSONRpcResponse<T> where
T: Sync,
impl<T> Unpin for JSONRpcResponse<T> where
T: Unpin,
impl<T> UnwindSafe for JSONRpcResponse<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self