Function to_vec

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

Render type T as a Document<U> and then serialize it as a JSON byte vector.