AttachmentInfo
pub struct AttachmentInfo
What one file carried inside a snapshot or a recording is, without its bytes.
AttachmentInfo — fields
name: String
The name the writer recorded.
mime: String
The MIME type the writer recorded.
size: u64
Uncompressed byte count.
sha256: String
Lowercase hex SHA-256 of the uncompressed bytes.
Verified on a snapshot and not on a recording, and the
difference is in the containers rather than in either binding.
A snapshot's attachments are deflated inside an otCa chunk and
are checked as they are inflated, so an attachment whose digest
does not match makes Snapshot::open fail with
Status::Io. An MKV attachment stream is stored verbatim, so
there is no decode that could go wrong unnoticed and this is
simply the digest the recording's own otc-meta.json index
recorded. Empty from a recording is "the file does not say",
never "it matched": a file written by something other than
this SDK, or by a version of it older than the index, carries
none.