pub struct RangeSnapshots {
pub blobs: BTreeMap<String, Option<String>>,
pub boundaries: Vec<Boundary>,
}Expand description
File contents pinned at every commit boundary of the diffed range, deduplicated by git blob id. Only paths touched by some commit in the range are tracked.
Fields§
§blobs: BTreeMap<String, Option<String>>Blob id → content. None marks content that was not snapshotted
(binary, not UTF-8, or oversized); sub-range diffs render such files as
“contents not shown”.
boundaries: Vec<Boundary>One entry per boundary, oldest first: index 0 is the diff’s start
(the merge base), index k > 0 is the state after the k-th commit.
Trait Implementations§
Source§impl Clone for RangeSnapshots
impl Clone for RangeSnapshots
Source§fn clone(&self) -> RangeSnapshots
fn clone(&self) -> RangeSnapshots
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeSnapshots
impl Debug for RangeSnapshots
Source§impl<'de> Deserialize<'de> for RangeSnapshots
impl<'de> Deserialize<'de> for RangeSnapshots
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RangeSnapshots
impl RefUnwindSafe for RangeSnapshots
impl Send for RangeSnapshots
impl Sync for RangeSnapshots
impl Unpin for RangeSnapshots
impl UnsafeUnpin for RangeSnapshots
impl UnwindSafe for RangeSnapshots
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more