Debian Codegraph @

third_party/rust/zip/src/extra_fields/mod.rs

raw
1 //! types for extra fields
2
3 /// marker trait to denote the place where this extra field has been stored
4 pub trait ExtraFieldVersion {}
5
6 /// use this to mark extra fields specified in a local header
7
8 #[derive(Debug, Clone)]
9 pub struct LocalHeaderVersion;
10
11 /// use this to mark extra fields specified in the central header
12
13 #[derive(Debug, Clone)]
14 pub struct CentralHeaderVersion;
15
16 impl ExtraFieldVersion for LocalHeaderVersion {}
17 impl ExtraFieldVersion for CentralHeaderVersion {}
18
19 mod extended_timestamp;
20 mod zipinfo_utf8;
21
22 pub use extended_timestamp::*;
23 pub use zipinfo_utf8::*;
24
25 /// contains one extra field
26 #[derive(Debug, Clone)]
27 pub enum ExtraField {
28 /// extended timestamp, as described in <https://libzip.org/specifications/extrafld.txt>
29 ExtendedTimestamp(ExtendedTimestamp),
30 }