pub struct ConclusionInput<'a, F: RepositoryFacts> {
pub invocation: &'a CommitInvocation<'a>,
pub workspace: &'a mut CommitWorkspace,
pub capture: &'a InvocationCapture,
pub selection: &'a Selection,
pub request: &'a StageRequest,
pub checks: &'a mut ShippedChecks<PrivateIndexFacts<F>>,
pub pass: PassResult,
pub changed_passes: u64,
pub changed_paths: Vec<String>,
pub committed_paths: Vec<String>,
pub pathspecs: &'a [String],
}Expand description
What: Everything the conclusion reads from the settled transaction. Why: The steps share the workspace, the capture, the policies’ settled pass and the selection facts.
In TS you’d write (pseudocode):
type SettledCommitTransaction = { workspace; capture; mode; pass; changedPasses; changedPaths; ... };Fields§
§invocation: &'a CommitInvocation<'a>The invocation’s fixed facts.
workspace: &'a mut CommitWorkspaceThe published workspace.
capture: &'a InvocationCaptureThe invocation capture.
selection: &'a SelectionThe selection facts.
request: &'a StageRequestThe request the policies run under.
checks: &'a mut ShippedChecks<PrivateIndexFacts<F>>The shipped checks over the private index.
pass: PassResultThe settled pass.
changed_passes: u64How many passes changed content.
changed_paths: Vec<String>The paths the corrections wrote.
committed_paths: Vec<String>The paths the private index changes against the base.
pathspecs: &'a [String]The positional pathspec tokens.
Auto Trait Implementations§
impl<'a, F> !RefUnwindSafe for ConclusionInput<'a, F>
impl<'a, F> !Send for ConclusionInput<'a, F>
impl<'a, F> !Sync for ConclusionInput<'a, F>
impl<'a, F> !UnwindSafe for ConclusionInput<'a, F>
impl<'a, F> Freeze for ConclusionInput<'a, F>
impl<'a, F> Unpin for ConclusionInput<'a, F>
impl<'a, F> UnsafeUnpin for ConclusionInput<'a, F>
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