pub struct ActionPlan {
pub label: String,
pub opinionated: bool,
pub actions: Vec<Action>,
}Expand description
One self-consistent set of actions that fixes a [Diagnostic].
Fields§
§label: StringImperative description of what this plan would do, shown to the
user (LSP code-action menu, lintian-brush --interactive). Every
plan must have one — a diagnostic with multiple plans needs each
titled distinctly so the user can pick.
opinionated: boolIf true, this plan only applies when the user has opted into
opinionated fixes (--opinionated / preferences.opinionated).
The driver skips opinionated plans otherwise.
actions: Vec<Action>Actions applied as a unit.
Trait Implementations§
Source§impl Clone for ActionPlan
impl Clone for ActionPlan
Source§fn clone(&self) -> ActionPlan
fn clone(&self) -> ActionPlan
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 ActionPlan
impl Debug for ActionPlan
Source§impl<'de> Deserialize<'de> for ActionPlan
impl<'de> Deserialize<'de> for ActionPlan
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 ActionPlan
impl PartialEq for ActionPlan
Source§fn eq(&self, other: &ActionPlan) -> bool
fn eq(&self, other: &ActionPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionPlan
impl Serialize for ActionPlan
impl Eq for ActionPlan
impl StructuralPartialEq for ActionPlan
Auto Trait Implementations§
impl Freeze for ActionPlan
impl RefUnwindSafe for ActionPlan
impl Send for ActionPlan
impl Sync for ActionPlan
impl Unpin for ActionPlan
impl UnsafeUnpin for ActionPlan
impl UnwindSafe for ActionPlan
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.