pub fn split_attachments(
header: &Value,
bytes: Vec<u8>,
) -> Result<Vec<Attachment>, String>Expand description
Splits bytes as the header’s attachments list says.
§Errors
A list that is not an array of {type, bytes}, an empty or overlong type, or lengths that do
not add up to bytes.