pub fn from_doc<T, U>(doc: Document<T>) -> Result<U, Error>where
T: PrimaryData,
U: DeserializeOwned,Expand description
Interpret a Document<T> as a type U.
pub fn from_doc<T, U>(doc: Document<T>) -> Result<U, Error>where
T: PrimaryData,
U: DeserializeOwned,Interpret a Document<T> as a type U.