pub struct GraftRecord {
pub pre: String,
pub post: Option<String>,
pub lines: Option<usize>,
pub limit: Option<usize>,
pub agent: Option<String>,
pub outcome: GraftOutcome,
pub requested: Vec<GraftStrength>,
pub adoption: Option<GraftAdoption>,
pub adoption_error: Option<String>,
}Expand description
The graft phase’s record: what ran, on which commits, and how it ended.
pre and a Running outcome are saved before the fixer is called.
Fields§
§pre: StringThe winner’s commit before the graft; restored on a rollback.
post: Option<String>The winner’s commit after an applied graft.
lines: Option<usize>Changed lines (added + removed) the graft introduced, when measured.
limit: Option<usize>Historical size limit, retained for old records only. New grafts use None.
agent: Option<String>Agent that answered the round.
outcome: GraftOutcomeHow it ended.
requested: Vec<GraftStrength>The strengths the fixer was asked to port, with the ids the prompt gave them. Empty on a record written before they were kept.
adoption: Option<GraftAdoption>What the fixer reported it did with them; None when it gave no usable
report (see adoption_error) or the record predates this field.
adoption_error: Option<String>Why adoption is absent although the fixer answered.
Trait Implementations§
Source§impl Clone for GraftRecord
impl Clone for GraftRecord
Source§impl Debug for GraftRecord
impl Debug for GraftRecord
Source§impl<'de> Deserialize<'de> for GraftRecord
impl<'de> Deserialize<'de> for GraftRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for GraftRecord
impl Freeze for GraftRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GraftStrength>: Freeze,
PhantomData<String>: Freeze,
PhantomData<GraftRejection>: Freeze,
impl Move for GraftRecord
impl RefUnwindSafe for GraftRecord
impl Send for GraftRecordwhere
RawVecInner: Send,
impl Sync for GraftRecordwhere
RawVecInner: Sync,
impl Unpin for GraftRecord
impl UnsafeUnpin for GraftRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GraftStrength>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<GraftRejection>: UnsafeUnpin,
impl UnwindSafe for GraftRecordwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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