pub enum LandingPayload {
Commit {
new_oid: String,
landed_tree_oid: String,
expected_old: Base,
landed_index: PathBuf,
exact_private_index: bool,
guarded_paths: Vec<Vec<u8>>,
},
NormalizeOnly {
landed_tree_oid: String,
},
}Expand description
What: What one landing installs. Why: A prepared commit advances the target; a normalization installs only the settled index.
In TS you’d write (pseudocode):
type LandingPayload = { operation: 'commit'; newOid; landedTreeOid; expectedOld; landedIndexPath; exactPrivateIndex; guardedPaths } | { operation: 'normalize-only'; landedTreeOid };Variants§
Commit
A prepared commit.
Fields
§
expected_old: BaseTarget value the commit’s parent names: the preparation base, or the replay parent.
NormalizeOnly
A normalization whose settled tree equals the base.
Trait Implementations§
Source§impl Clone for LandingPayload
impl Clone for LandingPayload
Source§impl Debug for LandingPayload
impl Debug for LandingPayload
impl Eq for LandingPayload
Source§impl PartialEq for LandingPayload
impl PartialEq for LandingPayload
impl StructuralPartialEq for LandingPayload
Auto Trait Implementations§
impl Freeze for LandingPayload
impl RefUnwindSafe for LandingPayload
impl Send for LandingPayload
impl Sync for LandingPayload
impl Unpin for LandingPayload
impl UnsafeUnpin for LandingPayload
impl UnwindSafe for LandingPayload
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