pub struct Manifest {Show 15 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>,
pub tree: Vec<Entry>,
}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>§tree: Vec<Entry>A file tree’s directories and symlinks, and its files’ modes (an iOS data directory):
what disks and files don’t say. Empty for a bundle of disk images.
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 stored_bytes(&self) -> u64
pub fn stored_bytes(&self) -> u64
The bytes an extract writes: the disks’ stored extents and the files (zeros stay holes).
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Forget for Manifest
impl Freeze for Manifestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Secret>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Disk>: Freeze,
PhantomData<File>: Freeze,
PhantomData<Entry>: Freeze,
impl Move for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Secret>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Disk>: UnsafeUnpin,
PhantomData<File>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
impl UnwindSafe for Manifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.