pub struct SuppressionInventoryEntry {
pub line: u32,
pub kind: Option<String>,
pub level: SuppressionInventoryLevel,
pub origin: SuppressionInventoryOrigin,
pub reason: Option<String>,
pub reason_present: bool,
}Expand description
One suppression marker in the inventory.
Fields§
§line: u321-based line of the suppression comment itself; 0 only if unknown.
kind: Option<String>The suppressed issue kind in kebab-case (e.g. "unused-export"), or
null for a blanket marker that suppresses every kind on its target.
Human output renders the blanket case as the literal word “blanket”;
the JSON contract deliberately keeps null so machine consumers
branch on null instead of a magic string.
level: SuppressionInventoryLevelWhether the marker is file-wide (fallow-ignore-file) or line-scoped
(fallow-ignore-next-line).
origin: SuppressionInventoryOriginHow the suppression was authored. "comment" in v1; "jsdoc_tag" is
reserved for a follow-up if @expected-unused entries enter the
active inventory.
reason: Option<String>Human-authored reason after --; null when absent.
reason_present: boolWhether a human-authored reason is present.
Trait Implementations§
Source§impl Clone for SuppressionInventoryEntry
impl Clone for SuppressionInventoryEntry
Source§impl Debug for SuppressionInventoryEntry
impl Debug for SuppressionInventoryEntry
Auto Trait Implementations§
impl Freeze for SuppressionInventoryEntry
impl RefUnwindSafe for SuppressionInventoryEntry
impl Send for SuppressionInventoryEntry
impl Sync for SuppressionInventoryEntry
impl Unpin for SuppressionInventoryEntry
impl UnsafeUnpin for SuppressionInventoryEntry
impl UnwindSafe for SuppressionInventoryEntry
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