pub struct PartEntry {
pub part_number: u32,
pub body_bytes: Vec<u8>,
pub subject: Option<String>,
}Expand description
A single collected part awaiting reassembly.
The caller is responsible for extracting body_bytes from the MIME or
plain-text message layer before constructing a PartEntry. This crate
treats body_bytes as an opaque UU-encoded byte sequence and passes it
directly to the uuencoding decoder.
§Example
use uuencoding_multi::PartEntry;
let entry = PartEntry {
part_number: 1,
body_bytes: b"begin 644 file.bin\nend\n".to_vec(),
subject: Some("myfile.bin (1/3)".to_string()),
};
assert_eq!(entry.part_number, 1);Fields§
§part_number: u321-based part index; 0 = TOC post.
The value 0 is reserved for the optional table-of-contents post that
Usenet series sometimes include as the first message. TOC parts do not
contribute to the sequential 1..=total count used during reassembly.
body_bytes: Vec<u8>Raw bytes of this part’s UU body, already extracted from the MIME layer
by the caller. Passed verbatim to uuencoding::decode during reassembly.
subject: Option<String>Original Subject header value, kept for diagnostics and logging.
Not used during reassembly.