pub struct CapturedRecord {
pub worktree_id: String,
pub sequence: i64,
pub next_sequence_before_base: i64,
pub worktree_paths: Vec<String>,
}Expand description
What:
captured.json:
the capture stamp,
the next sequence read before the preparation base,
and the Latin-1 decoded paths the capture read from the worktree.
Why:
The record pins landed records against pruning and names the captured paths.
In TS you’d write (pseudocode):
type CapturedRecord = { schemaVersion: 2; state: 'captured'; worktreeId: string; sequence: number; nextSequenceBeforeBase: number; worktreePaths: string[] };Fields§
§worktree_id: StringIdentity of the store that allocated the sequence number.
sequence: i64Capture sequence number, from 1.
next_sequence_before_base: i64Next sequence number read before the preparation base.
worktree_paths: Vec<String>Paths whose bytes the capture read from the worktree, Latin-1 decoded, in Git order.
Trait Implementations§
Source§impl Clone for CapturedRecord
impl Clone for CapturedRecord
Source§impl Debug for CapturedRecord
impl Debug for CapturedRecord
impl Eq for CapturedRecord
Source§impl PartialEq for CapturedRecord
impl PartialEq for CapturedRecord
impl StructuralPartialEq for CapturedRecord
Auto Trait Implementations§
impl Freeze for CapturedRecord
impl RefUnwindSafe for CapturedRecord
impl Send for CapturedRecord
impl Sync for CapturedRecord
impl Unpin for CapturedRecord
impl UnsafeUnpin for CapturedRecord
impl UnwindSafe for CapturedRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more