pub struct CloneGroupAction {
pub kind: CloneGroupActionType,
pub auto_fixable: bool,
pub description: String,
pub comment: Option<String>,
}Expand description
Per-action wire shape attached to each CloneGroupFinding and
AttributedCloneGroupFinding (see crates/api/src/dupes_output.rs):
extract-shared plus suppress-line. The typed wrappers replaced the
legacy JSON post-pass injection that used to live in the CLI report layer.
Fields§
§kind: CloneGroupActionTypeAction type identifier.
auto_fixable: boolWhether fallow fix can auto-apply this action. Both variants are
manual today; the field is non-singleton so a future auto-applier
does not need a schema change.
description: StringHuman-readable description of the action.
comment: Option<String>The inline comment to insert (e.g.,
// fallow-ignore-next-line code-duplication). Present on
suppress-line; absent on extract-shared.
Trait Implementations§
Source§impl Clone for CloneGroupAction
impl Clone for CloneGroupAction
Source§impl Debug for CloneGroupAction
impl Debug for CloneGroupAction
Auto Trait Implementations§
impl Freeze for CloneGroupAction
impl RefUnwindSafe for CloneGroupAction
impl Send for CloneGroupAction
impl Sync for CloneGroupAction
impl Unpin for CloneGroupAction
impl UnsafeUnpin for CloneGroupAction
impl UnwindSafe for CloneGroupAction
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