Trait couch_rs::model::Model

source ·
pub trait Model<T: TypedCouchDocument> {
    // Provided methods
    fn from_raw(d: Value) -> T { ... }
    fn to_raw(&self) -> Value
       where Self: Serialize { ... }
}
Expand description

Trait that provides methods that can be used to switch between abstract Value and concrete Model implementors (such as your custom data models)

Provided Methods§

source

fn from_raw(d: Value) -> T

source

fn to_raw(&self) -> Value
where Self: Serialize,

Object Safety§

This trait is not object safe.

Implementors§