pub struct PreparationRequest<'request> {
pub capture: &'request InvocationCapture,
pub shadow: &'request Path,
pub hooks: &'request PreparationHooks,
pub commit_index: &'request Path,
pub global_args: &'request [String],
pub commit_args: &'request [String],
}Expand description
What: Everything one native preparation needs from its transaction. Why: The incumbent passes these as separate options, and grouping them keeps the call short.
In TS you’d write (pseudocode):
runNativePreparation({ gitPath, cwd, globalArgs, commitArgs, shadowPath, worktreeRoot, hooksDirectory, commitIndexPath });Fields§
§capture: &'request InvocationCaptureInvocation capture the shadow was created from.
shadow: &'request PathShadow repository of the transaction.
hooks: &'request PreparationHooksHook dispatcher facts.
commit_index: &'request PathPrivate commit index.
global_args: &'request [String]Kept global options of the invocation.
commit_args: &'request [String]Commit arguments without pathspecs or --only.
Trait Implementations§
Source§impl<'request> Clone for PreparationRequest<'request>
impl<'request> Clone for PreparationRequest<'request>
impl<'request> Copy for PreparationRequest<'request>
Auto Trait Implementations§
impl<'request> Freeze for PreparationRequest<'request>
impl<'request> RefUnwindSafe for PreparationRequest<'request>
impl<'request> Send for PreparationRequest<'request>
impl<'request> Sync for PreparationRequest<'request>
impl<'request> Unpin for PreparationRequest<'request>
impl<'request> UnsafeUnpin for PreparationRequest<'request>
impl<'request> UnwindSafe for PreparationRequest<'request>
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<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