Skip to main content

ToRPCType

Trait ToRPCType 

Source
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§

Source

fn serialize_lisp(&self) -> Result<String>

Object-safe serialization method

Provided Methods§

Source

fn to_rpc_type() -> RPCType
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToRPCType for &str

Source§

impl ToRPCType for ()

Source§

impl ToRPCType for String

Source§

impl ToRPCType for bool

Source§

impl ToRPCType for char

Source§

impl ToRPCType for f32

Source§

impl ToRPCType for f64

Source§

impl ToRPCType for i8

Source§

impl ToRPCType for i16

Source§

impl ToRPCType for i32

Source§

impl ToRPCType for i64

Source§

impl ToRPCType for isize

Source§

impl ToRPCType for u8

Source§

impl ToRPCType for u16

Source§

impl ToRPCType for u32

Source§

impl ToRPCType for u64

Source§

impl ToRPCType for usize

Implementors§