pub struct SuppressLineAction {
pub kind: SuppressLineKind,
pub auto_fixable: bool,
pub description: String,
pub comment: String,
pub scope: Option<SuppressLineScope>,
}Expand description
Inline-comment suppression for a single finding line.
Fields§
§kind: SuppressLineKindAction type identifier.
auto_fixable: boolAlways false for suppress actions.
description: StringHuman-readable description of the suppression.
comment: StringThe inline comment to place above the line (e.g.,
// fallow-ignore-next-line unused-export). When multiple
suppressible findings share the same path and line, this may contain a
comma-separated issue-kind list such as
// fallow-ignore-next-line unused-export, complexity.
scope: Option<SuppressLineScope>Present on multi-location issue types (e.g., duplicate_exports) to
indicate the comment must be applied at each location.
Trait Implementations§
Source§impl Clone for SuppressLineAction
impl Clone for SuppressLineAction
Source§impl Debug for SuppressLineAction
impl Debug for SuppressLineAction
Source§impl<'de> Deserialize<'de> for SuppressLineAction
impl<'de> Deserialize<'de> for SuppressLineAction
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
Auto Trait Implementations§
impl Freeze for SuppressLineAction
impl RefUnwindSafe for SuppressLineAction
impl Send for SuppressLineAction
impl Sync for SuppressLineAction
impl Unpin for SuppressLineAction
impl UnsafeUnpin for SuppressLineAction
impl UnwindSafe for SuppressLineAction
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