pub trait Render {
// Required method
fn render(&self, args: Args) -> String;
}Expand description
Render an API result as one of several OutputFormats.
Required Methods§
Sourcefn render(&self, args: Args) -> String
fn render(&self, args: Args) -> String
Render an API result as one of several OutputFormats.
The compact parameter truncates the rendering to a single line:
- When there are multiple results, it picks a single one.
- When the main output contains linebreaks, trim and replace them with spaces.