1//! types for extra fields
23/// marker trait to denote the place where this extra field has been stored
4pub trait ExtraFieldVersion {}
56/// use this to mark extra fields specified in a local header
78#[derive(Debug, Clone)]
9pub struct LocalHeaderVersion;
1011/// use this to mark extra fields specified in the central header
1213#[derive(Debug, Clone)]
14pub struct CentralHeaderVersion;
1516impl ExtraFieldVersion for LocalHeaderVersion {}
17impl ExtraFieldVersion for CentralHeaderVersion {}
1819mod extended_timestamp;
20mod ntfs;
21mod zipinfo_utf8;
2223pub use extended_timestamp::*;
24pub use ntfs::Ntfs;
25pub use zipinfo_utf8::*;
2627/// contains one extra field
28#[derive(Debug, Clone)]
29pub enum ExtraField {
30/// NTFS extra field
31Ntfs(Ntfs),
3233/// extended timestamp, as described in <https://libzip.org/specifications/extrafld.txt>
34ExtendedTimestamp(ExtendedTimestamp),
35}