pub struct RenameFile {
pub old_uri: Uri,
pub new_uri: Uri,
pub options: Option<RenameFileOptions>,
pub annotation_id: Option<ChangeAnnotationIdentifier>,
}Expand description
Rename file operation
Fields§
§old_uri: UriThe old (existing) location.
new_uri: UriThe new location.
options: Option<RenameFileOptions>Rename options.
annotation_id: Option<ChangeAnnotationIdentifier>An optional annotation identifier describing the operation.
@since 3.16.0
Implementations§
Source§impl RenameFile
impl RenameFile
pub const fn new( old_uri: Uri, new_uri: Uri, options: Option<RenameFileOptions>, annotation_id: Option<ChangeAnnotationIdentifier>, ) -> Self
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<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
Source§impl From<RenameFile> for DocumentChange
impl From<RenameFile> for DocumentChange
Source§fn from(v: RenameFile) -> Self
fn from(v: RenameFile) -> Self
Converts to this type from the input type.
Source§impl Hash for RenameFile
impl Hash for RenameFile
Source§impl PartialEq for RenameFile
impl PartialEq for RenameFile
Source§fn eq(&self, other: &RenameFile) -> bool
fn eq(&self, other: &RenameFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RenameFile
impl Serialize for RenameFile
impl Eq for RenameFile
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