Trait vorm::FromDocument

source ·
pub trait FromDocument: DeserializeOwned {
    // Provided method
    fn from_doc(document: Document) -> Result<Self> { ... }
}
Expand description

Convenience trait for deserializing a document into a struct.

Provided Methods§

source

fn from_doc(document: Document) -> Result<Self>

Implementors§