Skip to main content

render_debug

Function render_debug 

Source
fn render_debug(request: &Message, payload: &str) -> String
Expand description

Renders the debug reply body.

When the command message is itself a reply, the referenced message’s content is what the user most likely wants echoed back, so it takes priority over a typed payload. Falls back to payload, and finally to an error if neither has anything to show.