Trait kv::Serde

source ·
pub trait Serde<T>: Encoding {
    fn from_serde(t: T) -> Self;
    fn to_serde(self) -> T;

    fn to_value_buf(t: T) -> Result<ValueBuf<Self>, Error> { ... }
}
Expand description

A trait for types wrapping Serde values

Required Methods§

Wraps a serde-compatible type in a Serde

Unwraps a serde-compatible type from a Serde

Provided Methods§

Converts a serde-compatible type to ValueBuf directly

Implementors§