pub struct FileEdit {
pub file_path: PathBuf,
pub edits: Vec<TextEdit>,
}Expand description
A file edit as part of a refactoring operation
Represents a set of text edits that should be applied to a single file as part of a workspace refactoring operation. All edits within a FileEdit are applied to the same file and should be applied in reverse order (from end to beginning) to maintain position validity.
Fields§
§file_path: PathBufThe absolute path to the file that should be edited
edits: Vec<TextEdit>The list of text edits to apply to this file, in document order
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileEdit
impl<'de> Deserialize<'de> for FileEdit
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FileEdit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FileEdit, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FileEdit
impl Serialize for FileEdit
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FileEdit
impl RefUnwindSafe for FileEdit
impl Send for FileEdit
impl Sync for FileEdit
impl Unpin for FileEdit
impl UnsafeUnpin for FileEdit
impl UnwindSafe for FileEdit
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