pub trait ToRPCType: Send + Sync {
// Required method
fn serialize_lisp(&self) -> Result<String>;
// Provided method
fn to_rpc_type() -> RPCType
where Self: Sized { ... }
}Expand description
need impl for struct
Required Methods§
Sourcefn serialize_lisp(&self) -> Result<String>
fn serialize_lisp(&self) -> Result<String>
Object-safe serialization method
Provided Methods§
fn to_rpc_type() -> RPCTypewhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".