Function to_writer_pretty

Source
pub fn to_writer_pretty<W, T, U>(
    writer: W,
    value: T,
    query: Option<&Query>,
) -> Result<(), Error>
where W: Write, T: Render<U>, U: PrimaryData,
Expand description

Render type T as a Document<U> and then serialize it as pretty-printed JSON into the IO stream.