Function to_writer

Source
pub fn to_writer<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 JSON into the IO stream.