pub trait ZipWriterExtensions {
// Required methods
fn create_from_directory(self, directory: &PathBuf) -> ZipResult<()>;
fn create_from_directory_with_options<F, T, H>(
self,
directory: &PathBuf,
cb_file_options: F,
handler: &H,
) -> ZipResult<()>
where T: FileOptionExtension,
F: Fn(&PathBuf) -> FileOptions<'_, T>,
H: EntryHandler<T>;
}Required Methods§
Sourcefn create_from_directory(self, directory: &PathBuf) -> ZipResult<()>
fn create_from_directory(self, directory: &PathBuf) -> ZipResult<()>
Creates a zip archive that contains the files and directories from the specified directory.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.