pub struct RecordedFinding {
pub rule: String,
pub target: String,
pub message: String,
}Expand description
A LintAtPlan finding captured at plan time for apply-time replay.
Persisted in manifest.toml under lint_at_plan_findings. At apply time,
preflight checks that each recorded finding still has a matching
[[lint_waiver]] row, catching the case where a waiver is removed from
intent.toml between plan and apply.
Fields§
§rule: StringThe lint rule ID that fired, e.g. "column-position-drift".
target: StringThe qualified target the finding pointed at, e.g. "app.users".
Extracted from the leading "<qname>: …" of the finding message.
message: StringFull finding message, used for substring matching against waiver targets.
Trait Implementations§
Source§impl Clone for RecordedFinding
impl Clone for RecordedFinding
Source§fn clone(&self) -> RecordedFinding
fn clone(&self) -> RecordedFinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordedFinding
impl Debug for RecordedFinding
Source§impl<'de> Deserialize<'de> for RecordedFinding
impl<'de> Deserialize<'de> for RecordedFinding
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RecordedFinding
impl PartialEq for RecordedFinding
Source§fn eq(&self, other: &RecordedFinding) -> bool
fn eq(&self, other: &RecordedFinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RecordedFinding
impl Serialize for RecordedFinding
impl Eq for RecordedFinding
impl StructuralPartialEq for RecordedFinding
Auto Trait Implementations§
impl Freeze for RecordedFinding
impl RefUnwindSafe for RecordedFinding
impl Send for RecordedFinding
impl Sync for RecordedFinding
impl Unpin for RecordedFinding
impl UnsafeUnpin for RecordedFinding
impl UnwindSafe for RecordedFinding
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> 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