Struct serde_json::ser::PrettyFormatter [] [src]

pub struct PrettyFormatter<'a> {
    // some fields omitted
}

This structure pretty prints a JSON value to make it human readable.

Trait Implementations

impl<'a> Formatter for PrettyFormatter<'a>
[src]

fn open<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write

Called when serializing a '{' or '['.

fn comma<W>(&mut self, writer: &mut W, first: bool) -> Result<()> where W: Write

Called when serializing a ','.

fn colon<W>(&mut self, writer: &mut W) -> Result<()> where W: Write

Called when serializing a ':'.

fn close<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write

Called when serializing a '}' or ']'.