pub struct ReviewCtx<'a> {
pub instruction: &'a str,
pub branch: &'a str,
pub base_short: &'a str,
pub stat: &'a str,
pub patch: &'a str,
pub e2e: Option<&'a str>,
pub reviewers: usize,
pub round: usize,
pub rounds: usize,
pub competed: bool,
pub lens: Lens,
pub language: &'a str,
}Expand description
Everything a reviewer needs to know about the patch under review.
Fields§
§instruction: &'a strThe original task.
branch: &'a strBranch holding the winner.
base_short: &'a strAbbreviated base commit.
stat: &'a strgit diff --stat output.
patch: &'a strThe patch.
e2e: Option<&'a str>Verification output from the previous round, when there was one.
reviewers: usizeHow many reviewers are in this round.
round: usize1-based round number.
rounds: usizeRound budget.
competed: boolDid this patch win a competition? False for a review-only run, where telling the reviewer it beat two rivals would be a lie — and a lie that flatters the patch it is supposed to be sceptical about.
lens: LensThis seat’s angle on the patch. See Lens.
language: &'a strLanguage for prose.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ReviewCtx<'a>
impl<'a> RefUnwindSafe for ReviewCtx<'a>
impl<'a> Send for ReviewCtx<'a>
impl<'a> Sync for ReviewCtx<'a>
impl<'a> Unpin for ReviewCtx<'a>
impl<'a> UnsafeUnpin for ReviewCtx<'a>
impl<'a> UnwindSafe for ReviewCtx<'a>
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