Skip to main content

write

Function write 

Source
pub fn write<T: Serialize + ?Sized>(
    value: &T,
    members: &[MemberInfo],
    out: &mut Vec<u8>,
) -> Result<Vec<(&'static str, String)>>
Expand description

Writes value (a structure) into out as a JSON object without the members members binds to headers, and returns those as (header, text). With a payload member, out gets that member’s bytes instead.