Trait c3p0::JsonCodec[][src]

pub trait JsonCodec<Data>: Clone + Send + Sync where
    Data: Serialize + DeserializeOwned + Send
{ pub fn from_value(&self, value: Value) -> Result<Data, C3p0Error>;
pub fn to_value(&self, data: &Data) -> Result<Value, C3p0Error>; }

Required methods

pub fn from_value(&self, value: Value) -> Result<Data, C3p0Error>[src]

pub fn to_value(&self, data: &Data) -> Result<Value, C3p0Error>[src]

Loading content...

Implementors

impl<Data> JsonCodec<Data> for DefaultJsonCodec where
    Data: Serialize + DeserializeOwned + Send
[src]

Loading content...