pub enum QuickFix {
InsertText {
label: String,
line: usize,
column: usize,
text: String,
},
ApplyPatch {
label: String,
document_path: String,
patches: Vec<Value>,
},
RemoveLine {
label: String,
line: usize,
},
}Expand description
Machine-readable quick fix attached to a crate::Diagnostic.
Variants§
InsertText
Insert text at a 1-based line/column in the document.
ApplyPatch
Apply OntoCore Turtle patch operations (same JSON as ontocore patch).
RemoveLine
Remove a line (1-based) from the document.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QuickFix
impl<'de> Deserialize<'de> for QuickFix
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
impl Eq for QuickFix
impl StructuralPartialEq for QuickFix
Auto Trait Implementations§
impl Freeze for QuickFix
impl RefUnwindSafe for QuickFix
impl Send for QuickFix
impl Sync for QuickFix
impl Unpin for QuickFix
impl UnsafeUnpin for QuickFix
impl UnwindSafe for QuickFix
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