Skip to main content

parse_status_agents

Function parse_status_agents 

Source
pub fn parse_status_agents(json: &str) -> Result<Vec<StatusAgent>, PawError>
Expand description

Parses the broker GET /status JSON body into agent rows.

§Errors

Returns PawError::SessionError when the body is not valid /status JSON.