pub struct Bundle {
pub output_dir: PathBuf,
pub files: HashMap<PathBuf, Vec<u8>>,
pub summary: String,
}Expand description
A deployment bundle — the files ready to upload/deploy.
Fields§
§output_dir: PathBufOutput directory path.
files: HashMap<PathBuf, Vec<u8>>All files in the bundle: relative path → content bytes.
summary: StringHuman-readable summary of what was generated.
Implementations§
Source§impl Bundle
impl Bundle
Sourcepub fn write_to_disk(&self) -> Result<()>
pub fn write_to_disk(&self) -> Result<()>
Write all bundle files to the output directory.
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Total size of all files in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bundle
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnsafeUnpin for Bundle
impl UnwindSafe for Bundle
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