pub fn decode_service(line: &str) -> Result<ServiceMessage, String>Expand description
What: Reads one service line. Why: The client checks what it is told as strictly as the service checks what it is sent.
In TS you’d write (pseudocode):
decodeService(line)