pub struct TextDocumentEdit {
pub text_document: TextDocumentIdentifier,
pub edits: Vec<TextEdit>,
}Expand description
Every edit to one file, applied together against its original text.
Fields§
§text_document: TextDocumentIdentifierFile the edits apply to.
edits: Vec<TextEdit>Edits, each against the file’s original text.
Trait Implementations§
Source§impl Clone for TextDocumentEdit
impl Clone for TextDocumentEdit
Source§impl Debug for TextDocumentEdit
impl Debug for TextDocumentEdit
Source§impl<'de> Deserialize<'de> for TextDocumentEdit
impl<'de> Deserialize<'de> for TextDocumentEdit
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 TextDocumentEdit
Source§impl JsonSchema for TextDocumentEdit
impl JsonSchema for TextDocumentEdit
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TextDocumentEdit
impl PartialEq for TextDocumentEdit
impl StructuralPartialEq for TextDocumentEdit
Auto Trait Implementations§
impl Freeze for TextDocumentEdit
impl RefUnwindSafe for TextDocumentEdit
impl Send for TextDocumentEdit
impl Sync for TextDocumentEdit
impl Unpin for TextDocumentEdit
impl UnsafeUnpin for TextDocumentEdit
impl UnwindSafe for TextDocumentEdit
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