Struct rustc-serialize::json::AsPrettyJson [-]  [+] [src]

pub struct AsPrettyJson<'a, T: 'a> {
    // some fields omitted
}

Methods

impl<'a, T> AsPrettyJson<'a, T>

fn indent(self, indent: u32) -> AsPrettyJson<'a, T>

Set the indentation level for the emitted JSON

Trait Implementations

impl<'a, T: Encodable> String for AsPrettyJson<'a, T>

fn fmt(&self, f: &mut Formatter) -> Result

Encodes a json value into a string