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§
Object Safety§
This trait is not object safe.