pub struct RenameFile {
pub from: String,
pub to: String,
pub expected_source_sha256: String,
pub edits: Vec<TextEdit>,
pub extensions: BTreeMap<String, Value>,
}Expand description
Move one exact source to an absent destination.
edits use v1 UTF-16 coordinates against the original from contents
guarded by expected_source_sha256, before the move.
Fields§
§from: String§to: String§expected_source_sha256: String§edits: Vec<TextEdit>§extensions: BTreeMap<String, Value>Implementations§
Source§impl RenameFile
impl RenameFile
pub fn new( from: impl Into<String>, to: impl Into<String>, expected_source_sha256: impl Into<String>, ) -> RenameFile
pub fn with_edits(self, edits: Vec<TextEdit>) -> RenameFile
Trait Implementations§
Source§impl Clone for RenameFile
impl Clone for RenameFile
Source§fn clone(&self) -> RenameFile
fn clone(&self) -> RenameFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenameFile
impl Debug for RenameFile
Source§impl<'de> Deserialize<'de> for RenameFile
impl<'de> Deserialize<'de> for RenameFile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RenameFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RenameFile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RenameFile
impl PartialEq for RenameFile
Source§impl Serialize for RenameFile
impl Serialize for RenameFile
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
impl StructuralPartialEq for RenameFile
Auto Trait Implementations§
impl Freeze for RenameFile
impl RefUnwindSafe for RenameFile
impl Send for RenameFile
impl Sync for RenameFile
impl Unpin for RenameFile
impl UnsafeUnpin for RenameFile
impl UnwindSafe for RenameFile
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