zip-rs-wasm/src/types.rs
Mathijs van de Nes d9b83af57c Large refactoring, mostly of the reader
- Combined reader and reader_spec into read
- Alter the iteration protocol for a zip archive
- Modify some names
2015-03-01 11:32:40 +01:00

28 lines
872 B
Rust

//! Types that specify what is contained in a ZIP.
use time;
/// Structure representing a ZIP file.
pub struct ZipFileData
{
/// True if the file is encrypted.
pub encrypted: bool,
/// Compression method used to store the file
pub compression_method: ::compression::CompressionMethod,
/// Last modified time. This will only have a 2 second precision.
pub last_modified_time: time::Tm,
/// CRC32 checksum
pub crc32: u32,
/// Size of the file in the ZIP
pub compressed_size: u64,
/// Size of the file when extracted
pub uncompressed_size: u64,
/// Name of the file
pub file_name: String,
/// File comment
pub file_comment: String,
/// Specifies where the local header of the file starts
pub header_start: u64,
/// Specifies where the compressed data of the file starts
pub data_start: u64,
}