pub struct Packager { /* private fields */ }Expand description
Codebase packager
Implementations§
Source§impl Packager
impl Packager
Sourcepub fn with_max_file_size(self, size: usize) -> Self
pub fn with_max_file_size(self, size: usize) -> Self
Set maximum file size
Sourcepub fn with_max_total_size(self, size: usize) -> Self
pub fn with_max_total_size(self, size: usize) -> Self
Set maximum total size
Sourcepub fn with_excludes(self, patterns: Vec<String>) -> Self
pub fn with_excludes(self, patterns: Vec<String>) -> Self
Add exclude patterns
Sourcepub fn with_includes(self, patterns: Vec<String>) -> Self
pub fn with_includes(self, patterns: Vec<String>) -> Self
Add include patterns (override excludes)
Sourcepub fn package(&self, codebase_path: &Path) -> Result<PackageResult>
pub fn package(&self, codebase_path: &Path) -> Result<PackageResult>
Package a codebase into a compressed tarball
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packager
impl RefUnwindSafe for Packager
impl Send for Packager
impl Sync for Packager
impl Unpin for Packager
impl UnwindSafe for Packager
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