pub struct LspCodeAction {
pub title: String,
pub kind: Option<String>,
pub diagnostics: Option<Vec<LspDiagnostic>>,
pub is_preferred: Option<bool>,
pub edit: Option<LspWorkspaceEdit>,
}Expand description
LSP code action.
Fields§
§title: StringTitle of the action.
kind: Option<String>Kind of action.
diagnostics: Option<Vec<LspDiagnostic>>Diagnostics this action resolves.
is_preferred: Option<bool>Is this the preferred action?
edit: Option<LspWorkspaceEdit>Edit to apply.
Trait Implementations§
Source§impl Clone for LspCodeAction
impl Clone for LspCodeAction
Source§fn clone(&self) -> LspCodeAction
fn clone(&self) -> LspCodeAction
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 moreSource§impl Debug for LspCodeAction
impl Debug for LspCodeAction
Source§impl<'de> Deserialize<'de> for LspCodeAction
impl<'de> Deserialize<'de> for LspCodeAction
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 LspCodeAction
impl RefUnwindSafe for LspCodeAction
impl Send for LspCodeAction
impl Sync for LspCodeAction
impl Unpin for LspCodeAction
impl UnwindSafe for LspCodeAction
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