pub fn from_csv<T: DeserializeOwned + Clone, P: AsRef<Path>>( path: P, ) -> Result<Vec<T>, Io>
Generic function to deserialize data types from a CSV file. Called by methods to avoid code duplication.