pub fn from_item<T>(d: Item) -> Result<T, Error> where T: DeserializeOwned,
Convert an item into T.
T