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,
}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>The size limit that applied.
agent: Option<String>Agent that answered the round.
outcome: GraftOutcomeHow it ended.
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 Freeze for GraftRecord
impl RefUnwindSafe for GraftRecord
impl Send for GraftRecord
impl Sync for GraftRecord
impl Unpin for GraftRecord
impl UnsafeUnpin for GraftRecord
impl UnwindSafe for GraftRecord
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