Skip to main content

parse_bases

Function parse_bases 

Source
pub fn parse_bases(raw: &str) -> AppResult<HashMap<String, BaseVersion>>
Expand description

Parses the bases field of an upload: a JSON object that maps file names to the version each upload is based on, either the version number (0 = a new file) or the SHA-256 of the content the client checked out: {"hub.step": 3, "frame.iam": "9f86d0…"}. Keys are matched like file names on the server (case-insensitive).