pub struct PostIndexInput<'input> {
pub mode: TransactionMode,
pub pre_landing_index: &'input Path,
pub captured_index: &'input Path,
pub landed_index: &'input Path,
pub post_index: &'input Path,
pub landed_tree: &'input str,
pub base_revision: &'input str,
pub committed_paths: &'input [String],
pub guarded_paths: &'input [String],
pub exact_private_index: bool,
}Expand description
What: The inputs of one post-index computation. Why: The index artifacts and the landed tree travel together; a struct keeps the call readable.
In TS you’d write (pseudocode):
{ mode, preLandingIndexPath, capturedIndexPath, landedIndexPath, postIndexPath, landedTreeOid, baseRevision, committedPaths, guardedPaths, exactPrivateIndex }Fields§
§mode: TransactionModeCommit selection mode.
pre_landing_index: &'input PathExact copy of the real index taken at landing.
captured_index: &'input PathInvocation-time index copy.
landed_index: &'input PathPrivate index the landed commit was made from.
post_index: &'input PathPost-index written by this computation.
landed_tree: &'input strTree the landing installs.
base_revision: &'input strPreparation base commit, or the empty tree when unborn.
committed_paths: &'input [String]Paths an explicit-path commit carries, including policy-added paths.
guarded_paths: &'input [String]Paths a commit hook changed.
exact_private_index: boolWhether landed_index is exactly the index the commit was prepared from.
Auto Trait Implementations§
impl<'input> Freeze for PostIndexInput<'input>
impl<'input> RefUnwindSafe for PostIndexInput<'input>
impl<'input> Send for PostIndexInput<'input>
impl<'input> Sync for PostIndexInput<'input>
impl<'input> Unpin for PostIndexInput<'input>
impl<'input> UnsafeUnpin for PostIndexInput<'input>
impl<'input> UnwindSafe for PostIndexInput<'input>
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> 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