pub struct OperatorFixFinding {
pub id: String,
pub severity: Severity,
pub reviewer_vote: Option<ReviewVote>,
pub round: usize,
pub round_head: String,
pub reviewer: usize,
pub agent: String,
pub file: Option<String>,
pub line: Option<u32>,
pub title: String,
pub detail: String,
pub outcome: OperatorFixOutcome,
}Expand description
One finding an operator selected for OperatorFixRequest, with the
provenance a reviewer originally gave it, copied here verbatim.
Severity and vote are snapshots, never recomputed and never treated as
blocking just because an operator picked the finding — only
Severity::blocks on the original ReviewRecord decides that. This
type exists so an operator’s selection is an auditable addition to the
record, not a rewrite of what a reviewer actually said.
Fields§
§id: StringFinding id, e.g. R2-1-3.
severity: SeveritySeverity as the reviewer recorded it.
reviewer_vote: Option<ReviewVote>The reviewer seat’s overall vote for the round this finding came from, if one was cast.
round: usizeReview round the finding was raised in.
round_head: StringThat round’s own head — the commit the finding was actually raised against, used for the freshness check against the branch’s current head at request time.
reviewer: usizeReviewer seat number, 1-based.
agent: StringAgent occupying that seat.
file: Option<String>File the finding concerns.
line: Option<u32>Line the finding concerns.
title: StringOne-line summary.
detail: StringThe argument.
outcome: OperatorFixOutcomeWhat happened to this finding after the fixer ran.
Trait Implementations§
Source§impl Clone for OperatorFixFinding
impl Clone for OperatorFixFinding
Source§impl Debug for OperatorFixFinding
impl Debug for OperatorFixFinding
Source§impl<'de> Deserialize<'de> for OperatorFixFinding
impl<'de> Deserialize<'de> for OperatorFixFinding
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>,
Auto Trait Implementations§
impl Forget for OperatorFixFinding
impl Freeze for OperatorFixFinding
impl Move for OperatorFixFinding
impl RefUnwindSafe for OperatorFixFinding
impl Send for OperatorFixFindingwhere
RawVecInner: Send,
impl Sync for OperatorFixFindingwhere
RawVecInner: Sync,
impl Unpin for OperatorFixFinding
impl UnsafeUnpin for OperatorFixFinding
impl UnwindSafe for OperatorFixFindingwhere
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
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> ⓘ
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> ⓘ
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