pub trait Renderer {
// Required methods
fn render_list(
&self,
table: &AnyTable,
records: &IndexMap<String, Record<CborValue>>,
column_override: Option<&[String]>,
);
fn render_record(
&self,
table: &AnyTable,
id: &str,
record: &Record<CborValue>,
relations: &[String],
);
}Expand description
Backend hook for printing list and single-record results.
Required Methods§
fn render_list( &self, table: &AnyTable, records: &IndexMap<String, Record<CborValue>>, column_override: Option<&[String]>, )
fn render_record( &self, table: &AnyTable, id: &str, record: &Record<CborValue>, relations: &[String], )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".