pub struct AssetInventory {
pub libraries: Vec<AssetEntry>,
pub agent_rootfs: AssetEntry,
pub layers: Vec<LayerEntry>,
pub storage_template: Option<AssetEntry>,
pub overlay_template: Option<AssetEntry>,
pub overlay_logical_size: Option<u64>,
}Expand description
Inventory of assets included in the packed binary.
Fields§
§libraries: Vec<AssetEntry>Runtime libraries (relative paths within assets).
agent_rootfs: AssetEntryAgent rootfs tarball.
layers: Vec<LayerEntry>OCI layer tarballs.
storage_template: Option<AssetEntry>Pre-formatted storage disk template (optional). When present, copied to cache on first run instead of formatting at runtime.
overlay_template: Option<AssetEntry>Overlay disk template (optional, VM mode only).
Contains the VM’s persistent rootfs state from a --from-vm pack.
overlay_logical_size: Option<u64>Original sparse size of the overlay disk, in bytes (optional, VM mode only).
When set, the overlay.raw entry in the archive is a truncated copy with
the trailing sparse hole removed. On extraction the file is extended to
this size via ftruncate, restoring the sparse skeleton the VM expects.
Trait Implementations§
Source§impl Clone for AssetInventory
impl Clone for AssetInventory
Source§fn clone(&self) -> AssetInventory
fn clone(&self) -> AssetInventory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetInventory
impl Debug for AssetInventory
Source§impl<'de> Deserialize<'de> for AssetInventory
impl<'de> Deserialize<'de> for AssetInventory
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssetInventory
impl RefUnwindSafe for AssetInventory
impl Send for AssetInventory
impl Sync for AssetInventory
impl Unpin for AssetInventory
impl UnsafeUnpin for AssetInventory
impl UnwindSafe for AssetInventory
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
Mutably borrows from an owned value. Read more