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

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

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

Methods

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

Construct a pretty printer formatter that defaults to using two spaces for indentation.

Construct a pretty printer formatter that uses the indent string for indentation.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

Returns the "default value" for a type. Read more

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

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

Called when serializing a ','.

Called when serializing a ':'.

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