pub fn to_doc<T, U>( value: T, query: Option<&Query>, ) -> Result<Document<U>, Error>where T: Render<U>, U: PrimaryData,
Render type T as a Document<U>.
T
Document<U>