git_internal/internal/metadata/entry_meta.rs
1#[derive(Debug, Clone, Default)]
2pub struct EntryMeta {
3 pub file_path: Option<String>,
4
5 pub pack_id: Option<String>,
6
7 /// Offset within the pack file
8 pub pack_offset: Option<usize>,
9
10 pub is_delta: Option<bool>,
11}
12
13impl EntryMeta {
14 pub fn new() -> Self {
15 Self::default()
16 }
17
18 pub fn set_pack_id(&mut self, id: impl Into<String>) -> &mut Self {
19 self.pack_id = Some(id.into());
20 self
21 }
22}