parse_entries

Function parse_entries 

Source
pub fn parse_entries(data: &str) -> Result<Vec<Entry>, LKCError>
Expand description

parse_entries() is a generic helper function which reads keycard data and returns a Vector of entries. The data for each entry is validated and it ensures that types aren’t mixed, but no other validation is performed. This call is mostly for reading card data received from servers, which can be an entire keycard, part of one, or just one entry.