Struct foxbox_taxonomy::serialize::MultiPart [] [src]

pub struct MultiPart {
    pub buf: Vec<(Id<MimeTypeId>, Vec<u8>)>,
}

An imnplementation of MultiPart that stores everything in a HashMap and returns JSON objects "{part: i}", where i is the (integer) key in the HashMap.

Fields

buf

Methods

impl MultiPart

fn new() -> Self

Trait Implementations

impl BinaryParts for MultiPart

fn push(&mut self, mimetype: Id<MimeTypeId>, binary: &[u8]) -> JSON