pub struct CreateFile {
pub uri: Uri,
pub options: Option<CreateFileOptions>,
pub annotation_id: Option<ChangeAnnotationIdentifier>,
}Expand description
Create file operation.
Fields§
§uri: UriThe resource to create.
options: Option<CreateFileOptions>Additional options
annotation_id: Option<ChangeAnnotationIdentifier>An optional annotation identifier describing the operation.
@since 3.16.0
Implementations§
Source§impl CreateFile
impl CreateFile
pub const fn new( uri: Uri, options: Option<CreateFileOptions>, annotation_id: Option<ChangeAnnotationIdentifier>, ) -> Self
Trait Implementations§
Source§impl Clone for CreateFile
impl Clone for CreateFile
Source§fn clone(&self) -> CreateFile
fn clone(&self) -> CreateFile
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 CreateFile
impl Debug for CreateFile
Source§impl<'de> Deserialize<'de> for CreateFile
impl<'de> Deserialize<'de> for CreateFile
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<CreateFile> for DocumentChange
impl From<CreateFile> for DocumentChange
Source§fn from(v: CreateFile) -> Self
fn from(v: CreateFile) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateFile
impl Hash for CreateFile
Source§impl PartialEq for CreateFile
impl PartialEq for CreateFile
Source§fn eq(&self, other: &CreateFile) -> bool
fn eq(&self, other: &CreateFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateFile
impl Serialize for CreateFile
impl Eq for CreateFile
impl StructuralPartialEq for CreateFile
Auto Trait Implementations§
impl Freeze for CreateFile
impl RefUnwindSafe for CreateFile
impl Send for CreateFile
impl Sync for CreateFile
impl Unpin for CreateFile
impl UnsafeUnpin for CreateFile
impl UnwindSafe for CreateFile
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