pub struct CodeAction {
pub title: String,
pub kind: CodeActionKind,
pub diagnostics: Vec<String>,
pub edit: CodeActionEdit,
pub is_preferred: bool,
}Expand description
A code action that can be applied to fix an issue
Code actions represent automated fixes for common issues and refactoring operations that can be applied to Perl source code.
Fields§
§title: StringHuman-readable title describing the action
kind: CodeActionKindThe kind/category of code action
diagnostics: Vec<String>Diagnostic codes this action fixes
edit: CodeActionEditThe edit operations to apply
is_preferred: boolWhether this action is the preferred choice
Trait Implementations§
Source§impl Clone for CodeAction
impl Clone for CodeAction
Source§fn clone(&self) -> CodeAction
fn clone(&self) -> CodeAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodeAction
impl RefUnwindSafe for CodeAction
impl Send for CodeAction
impl Sync for CodeAction
impl Unpin for CodeAction
impl UnsafeUnpin for CodeAction
impl UnwindSafe for CodeAction
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