Trait Serializable

Source
pub trait Serializable {
    // Required methods
    fn to_json(&self) -> String;
    fn write_csv_dyn(&self, w: &mut dyn Write) -> Result<()>;
    fn write_table_dyn(&self, w: &mut dyn Write) -> Result<()>;
}
Expand description

Common serialization interface for all result types.

Enables generic output handling (see main.rs::write_output). Uses &mut dyn Write for dyn-compatibility.

Required Methods§

Source

fn to_json(&self) -> String

Source

fn write_csv_dyn(&self, w: &mut dyn Write) -> Result<()>

Source

fn write_table_dyn(&self, w: &mut dyn Write) -> Result<()>

Implementors§