pub struct PackageBundle {
pub schema: String,
pub name: String,
pub version: String,
pub format: String,
pub out_path: String,
pub lock_sha256: String,
pub entries: Vec<BundleEntry>,
pub created_at: u64,
}Expand description
A self-contained, offline package bundle descriptor ().
Produced by pack and written as package.json inside the artifact so a
downstream consumer / CI can verify the bundle reproduces the original
sdkt.lock and per-dependency integrity hashes exactly.
Fields§
§schema: StringSchema marker for the descriptor.
name: StringPackage name (from [package]).
version: StringPackage version (from [package]).
format: StringArtifact format: tar.zst or dir.
out_path: StringPath to the produced artifact (file or directory).
lock_sha256: Stringsha256 of the bundled sdkt.lock bytes (verifies lock equivalence).
entries: Vec<BundleEntry>Per-dependency resolved entries (for offline reconstruct + verify).
created_at: u64Bundle creation timestamp (Unix seconds; no external time crate).
Implementations§
Source§impl PackageBundle
impl PackageBundle
Sourcepub fn write_descriptor(&self, dir: &Path) -> Result<PathBuf, PackageError>
pub fn write_descriptor(&self, dir: &Path) -> Result<PathBuf, PackageError>
Write this descriptor as package.json into dir.
Trait Implementations§
Source§impl Clone for PackageBundle
impl Clone for PackageBundle
Source§impl Debug for PackageBundle
impl Debug for PackageBundle
Source§impl Default for PackageBundle
impl Default for PackageBundle
Source§impl<'de> Deserialize<'de> for PackageBundle
impl<'de> Deserialize<'de> for PackageBundle
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
impl Eq for PackageBundle
Source§impl PartialEq for PackageBundle
impl PartialEq for PackageBundle
Source§impl Serialize for PackageBundle
impl Serialize for PackageBundle
impl StructuralPartialEq for PackageBundle
Auto Trait Implementations§
impl Freeze for PackageBundle
impl RefUnwindSafe for PackageBundle
impl Send for PackageBundle
impl Sync for PackageBundle
impl Unpin for PackageBundle
impl UnsafeUnpin for PackageBundle
impl UnwindSafe for PackageBundle
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