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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.