pub struct PreparedRecord {
pub shadow_path: String,
pub prepared_oid: String,
pub signed: bool,
pub intended_tree_oid: String,
pub committed_paths: Vec<String>,
pub added_paths: Vec<AddedPath>,
pub selected_worktree_paths: Vec<AddedPath>,
}Expand description
What:
prepared.json:
the verified prepared commit in the shadow repository.
Why:
Landing and recovery need the commit,
its tree and the worktree completions.
In TS you’d write (pseudocode):
type PreparedRecord = { schemaVersion: 2; state: 'prepared'; shadowPath; preparedOid; signed; ... };Fields§
§shadow_path: StringShadow repository holding the prepared commit.
prepared_oid: StringPrepared commit.
signed: boolWhether the prepared commit carries a signature header.
intended_tree_oid: StringIntended tree the prepared commit was verified against.
committed_paths: Vec<String>Paths the commit carries, including policy-added paths.
added_paths: Vec<AddedPath>Policy-added paths with original and intended blobs.
selected_worktree_paths: Vec<AddedPath>Selected paths whose worktree copies receive settled bytes.
Trait Implementations§
Source§impl Clone for PreparedRecord
impl Clone for PreparedRecord
Source§impl Debug for PreparedRecord
impl Debug for PreparedRecord
impl Eq for PreparedRecord
Source§impl PartialEq for PreparedRecord
impl PartialEq for PreparedRecord
impl StructuralPartialEq for PreparedRecord
Auto Trait Implementations§
impl Freeze for PreparedRecord
impl RefUnwindSafe for PreparedRecord
impl Send for PreparedRecord
impl Sync for PreparedRecord
impl Unpin for PreparedRecord
impl UnsafeUnpin for PreparedRecord
impl UnwindSafe for PreparedRecord
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