gix_pack/find.rs
1/// An Entry in a pack providing access to its data.
2///
3/// Its commonly retrieved by reading from a pack index file followed by a read from a pack data file.
4#[derive(PartialEq, Eq, Debug, Hash, Ord, PartialOrd, Clone)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct Entry {
7 /// The pack-data encoded bytes of the pack data entry as present in the pack file, including the header followed by compressed data.
8 pub data: Vec<u8>,
9 /// The version of the pack file containing `data`
10 pub version: crate::data::Version,
11}