Function to_string_pretty

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

Render type T as a Document<U> and then serialize it as a pretty-printed string of JSON.