pub trait ToColoredJson {
    fn to_colored_json_auto(&self) -> Result<String>;
    fn to_colored_json(&self, mode: ColorMode) -> Result<String>;
    fn to_colored_json_with_styler(
        &self,
        mode: ColorMode,
        styler: Styler
    ) -> Result<String>; fn write_colored_json<W>(&self, writer: &mut W) -> Result<()>
   where
        W: Write
; fn write_colored_json_with_mode<W>(
        &self,
        writer: &mut W,
        mode: ColorMode
    ) -> Result<()>
   where
        W: Write
; fn write_colored_json_with_styler<W>(
        &self,
        writer: &mut W,
        mode: ColorMode,
        styler: Styler
    ) -> Result<()>
   where
        W: Write
; }
Expand description

Trait to add json coloring for all AsRef<str> like String and &str

Required Methods

Implementors