Skip to main content

response_line

Function response_line 

Source
pub fn response_line(
    id: Option<&Value>,
    command: Option<&str>,
    outcome: Result<Option<&str>, &str>,
) -> String
Expand description

A response line: data is serialized JSON, or absent. A line without a type gets a response without command, as JSON.stringify drops pi’s undefined.