Skip to main content

parse_client_id

Function parse_client_id 

Source
pub fn parse_client_id(s: &str) -> Option<ClientId>
Expand description

Inverse of the name@version rendering used in both the commit trailer block (Client: <name>@<version>) and the folder-backend JSONL changelog ("client": "<name>@<version>"). Splits on the last @ because client names may legitimately contain . and -; versions never contain @. Returns None for malformed input (no @, empty name, empty version) so tolerant readers drop the field rather than constructing a half-record.