pub struct InstallManifest {
pub header: InstallHeader,
pub tags: Vec<InstallTag>,
pub entries: Vec<InstallEntry>,
}
Expand description
Install manifest
Fields§
§header: InstallHeader
File header
List of tags
entries: Vec<InstallEntry>
List of file entries
Implementations§
Source§impl InstallManifest
impl InstallManifest
Get all files that have specific tags
Sourcepub fn get_files_for_platform(&self, platform: Platform) -> Vec<&InstallEntry>
pub fn get_files_for_platform(&self, platform: Platform) -> Vec<&InstallEntry>
Get all files for a specific platform
Get all unique tags in the manifest
Sourcepub fn get_file_by_path(&self, path: &str) -> Option<&InstallEntry>
pub fn get_file_by_path(&self, path: &str) -> Option<&InstallEntry>
Get a specific file by path
Calculate total size for files with specific tags
Sourcepub fn calculate_size_for_platform(&self, platform: Platform) -> u64
pub fn calculate_size_for_platform(&self, platform: Platform) -> u64
Calculate total size for a platform
Auto Trait Implementations§
impl Freeze for InstallManifest
impl RefUnwindSafe for InstallManifest
impl Send for InstallManifest
impl Sync for InstallManifest
impl Unpin for InstallManifest
impl UnwindSafe for InstallManifest
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