pub struct DirectEditFinding {
pub number: u32,
pub kind: DiagnosticKind,
pub recorded: Option<String>,
pub current: String,
pub message: String,
}Expand description
One direct-edit finding: a file whose status no longer agrees with its History.
WP06. Separate from WorkflowDiagnostic because it has to carry both sides
of the contradiction — the recorded from and the current column — and a message
that names the rule. A WorkflowDiagnostic reports a condition; this reports a
disagreement between a record and a file, which is a different thing to say.
Fields§
§number: u32The issue number, so a caller can find the file without re-parsing.
kind: DiagnosticKind§recorded: Option<String>The column the accepted decision landed in, or None when the file records
no usable decision at all.
current: StringThe column the file says now.
message: StringThe rule that was broken, in words.
Trait Implementations§
Source§impl Clone for DirectEditFinding
impl Clone for DirectEditFinding
Source§impl Debug for DirectEditFinding
impl Debug for DirectEditFinding
impl Eq for DirectEditFinding
Source§impl PartialEq for DirectEditFinding
impl PartialEq for DirectEditFinding
impl StructuralPartialEq for DirectEditFinding
Auto Trait Implementations§
impl Freeze for DirectEditFinding
impl RefUnwindSafe for DirectEditFinding
impl Send for DirectEditFinding
impl Sync for DirectEditFinding
impl Unpin for DirectEditFinding
impl UnsafeUnpin for DirectEditFinding
impl UnwindSafe for DirectEditFinding
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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