pub struct OperatorFixRequest {
pub requested_at: Timestamp,
pub reason: String,
pub findings: Vec<OperatorFixFinding>,
pub head_at_request: String,
pub allow_stale: bool,
pub stale: bool,
pub fix: Option<FixRecord>,
pub result_head: Option<String>,
pub follow_up_review_run: Option<String>,
}Expand description
One magi fix invocation: the operator’s own record of which
already-recorded findings they routed to a fixer, why, and what came
back. See SCHEMA’s doc for schema 9 on why this is a channel of its
own rather than a field on ReviewRound.
Fields§
§requested_at: TimestampWhen magi fix was invoked.
reason: StringThe operator’s own reasoning. Required and never empty at the CLI — the audit trail this feature exists for.
findings: Vec<OperatorFixFinding>The findings selected, each with its own provenance and outcome.
head_at_request: StringThe branch’s head at the moment this request started executing.
allow_stale: boolDid the operator pass --allow-stale?
stale: boolDid any selected finding’s own round_head differ from
head_at_request? Kept distinct from allow_stale — flipping that
flag does not retroactively make a request that was actually fresh
read as stale, or the reverse.
fix: Option<FixRecord>The fixer’s own attempt, once dispatched.
result_head: Option<String>Head after the fixer’s commit, when it produced one.
follow_up_review_run: Option<String>The review-only run opened to re-verify the change, when one was
actually committed. None when nothing changed, so there was
nothing new to re-review — never left implicit as “not gotten to
yet”.
Trait Implementations§
Source§impl Clone for OperatorFixRequest
impl Clone for OperatorFixRequest
Source§impl Debug for OperatorFixRequest
impl Debug for OperatorFixRequest
Source§impl<'de> Deserialize<'de> for OperatorFixRequest
impl<'de> Deserialize<'de> for OperatorFixRequest
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 OperatorFixRequest
impl Freeze for OperatorFixRequestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OperatorFixFinding>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Rejection>: Freeze,
impl Move for OperatorFixRequest
impl RefUnwindSafe for OperatorFixRequest
impl Send for OperatorFixRequestwhere
RawVecInner: Send,
impl Sync for OperatorFixRequestwhere
RawVecInner: Sync,
impl Unpin for OperatorFixRequest
impl UnsafeUnpin for OperatorFixRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<OperatorFixFinding>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Rejection>: UnsafeUnpin,
impl UnwindSafe for OperatorFixRequestwhere
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