pub struct WorkflowDiagnostic {
pub kind: DiagnosticKind,
pub subject: String,
pub message: String,
}Expand description
One finding. The service never writes, so a diagnostic is the only output a refusal produces.
Fields§
§kind: DiagnosticKind§subject: StringThe board, column, or issue the finding is about, rendered for a message.
message: StringTrait Implementations§
Source§impl Clone for WorkflowDiagnostic
impl Clone for WorkflowDiagnostic
Source§impl Debug for WorkflowDiagnostic
impl Debug for WorkflowDiagnostic
Source§impl Display for WorkflowDiagnostic
impl Display for WorkflowDiagnostic
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
(<kind>) for <subject>: <message>.
WP03. The kind leads, in parentheses, because the name is the part a
caller can match on — a user reporting a bug, a test asserting the
condition, and a grep over logs all key off it. subject sits in the
middle because it says what was attempted, and message says why not.
impl Eq for WorkflowDiagnostic
Source§impl PartialEq for WorkflowDiagnostic
impl PartialEq for WorkflowDiagnostic
impl StructuralPartialEq for WorkflowDiagnostic
Auto Trait Implementations§
impl Freeze for WorkflowDiagnostic
impl RefUnwindSafe for WorkflowDiagnostic
impl Send for WorkflowDiagnostic
impl Sync for WorkflowDiagnostic
impl Unpin for WorkflowDiagnostic
impl UnsafeUnpin for WorkflowDiagnostic
impl UnwindSafe for WorkflowDiagnostic
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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more