pub trait ToJsonwhere
Self: TypeInfo + Serialize,{
// Provided methods
fn to_json_writer<W>(
&self,
writer: W,
compact: bool
) -> Result<(), StamError>
where W: Write { ... }
fn to_json_file(
&self,
filename: &str,
config: &Config
) -> Result<(), StamError> { ... }
fn to_json_string(&self, config: &Config) -> Result<String, StamError> { ... }
}Provided Methods§
sourcefn to_json_writer<W>(&self, writer: W, compact: bool) -> Result<(), StamError>where
W: Write,
fn to_json_writer<W>(&self, writer: W, compact: bool) -> Result<(), StamError>where W: Write,
Writes a serialisation (choose a dataformat) to any writer Lower-level function