pub struct Manifest {Show 14 fields
pub format: u32,
pub simee_version: String,
pub platform: Platform,
pub device: Device,
pub identity: Identity,
pub captures: Captures,
pub resume: String,
pub secrets: Vec<Secret>,
pub guest_identity: GuestIdentity,
pub dropped: Vec<String>,
pub chunk_size: u64,
pub compression: String,
pub disks: Vec<Disk>,
pub files: Vec<File>,
}Fields§
§format: u32§simee_version: StringThe simee that wrote it.
platform: Platform§device: Device§identity: IdentityWhat the device runs on, matched by content on import (never by path).
captures: Captures§resume: StringWhat the receiver does with it: COLD_BOOT in format 1.
secrets: Vec<Secret>What in the bundle may be a secret, and whether an export can leave it out.
guest_identity: GuestIdentityWhat an import shares with the device it came from.
dropped: Vec<String>What the export changed or left out to make the bundle host-independent (a config.ini
key that held a host path), so the receiver can tell.
chunk_size: u64§compression: String§disks: Vec<Disk>§files: Vec<File>Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn parse(bytes: &[u8]) -> Result<Manifest>
pub fn parse(bytes: &[u8]) -> Result<Manifest>
Parses and validates manifest.json. The format is checked before
anything else, so a newer major is refused as such rather than as malformed.
pub fn to_json(&self) -> Vec<u8> ⓘ
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Checks everything an import relies on: the format, every path, that each disk’s extents cover it exactly in order, every hash’s shape, and each file’s chunk count.
Sourcepub fn chunk_hashes(&self) -> Vec<&str>
pub fn chunk_hashes(&self) -> Vec<&str>
Every stored chunk’s hash, once, in the order the manifest first names it.