pub trait ToJson {
// Required method
fn to_json(&self) -> Result<Box<RawValue>, Error>;
}
Expand description
Interface for types that can be serialized into JSON.
Required Methods§
Implementations on Foreign Types§
Implementors§
impl ToJson for RawResponse<'_>
Available on crate feature
client
only.impl ToJson for MethodResponse
Available on crate feature
server
only.