Skip to main content

Manifest

Struct Manifest 

Source
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: String

The simee that wrote it.

§platform: Platform§device: Device§identity: Identity

What the device runs on, matched by content on import (never by path).

§captures: Captures§resume: String

What 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: GuestIdentity

What 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

Source

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.

Source

pub fn to_json(&self) -> Vec<u8> ⓘ

Source

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.

Source

pub fn stored_bytes(&self) -> u64

The bytes an extract writes: the disks’ stored extents and the files (zeros stay holes).

Source

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 Clone for Manifest

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Manifest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Manifest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Manifest

Source§

impl PartialEq for Manifest

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Manifest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Manifest

Auto Trait Implementations§

§

impl Forget for Manifest

§

impl Freeze for Manifest

§

impl Move for Manifest

§

impl RefUnwindSafe for Manifest

§

impl Send for Manifest
where RawVecInner: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send,

§

impl Sync for Manifest
where RawVecInner: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync,

§

impl Unpin for Manifest
where *const u8 is !null: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin,

§

impl UnsafeUnpin for Manifest

§

impl UnwindSafe for Manifest
where RawVecInner: UnwindSafe, BTreeMap<String, String>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.