pub(crate) mod builder;
use crate::{entry::StoredZipEntry, string::ZipString};
use builder::ZipFileBuilder;
#[derive(Clone)]
pub struct ZipFile {
pub(crate) entries: Vec<StoredZipEntry>,
pub(crate) zip64: bool,
pub(crate) comment: ZipString,
}
impl From<ZipFileBuilder> for ZipFile {
fn from(builder: ZipFileBuilder) -> Self {
builder.0
}
}
impl ZipFile {
pub fn entries(&self) -> &[StoredZipEntry] {
&self.entries
}
pub fn comment(&self) -> &ZipString {
&self.comment
}
pub fn zip64(&self) -> bool {
self.zip64
}
}