pub struct ApplyPatchCallOperationCreateFile {
pub diff: String,
pub path: String,
pub type_: String,
}Expand description
Instruction for creating a new file via the apply_patch tool.
Fields§
§diff: StringUnified diff content to apply when creating the file.
path: StringPath of the file to create relative to the workspace root.
type_: StringThe operation type. Always create_file.
Trait Implementations§
Source§impl Clone for ApplyPatchCallOperationCreateFile
impl Clone for ApplyPatchCallOperationCreateFile
Source§fn clone(&self) -> ApplyPatchCallOperationCreateFile
fn clone(&self) -> ApplyPatchCallOperationCreateFile
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<'de> Deserialize<'de> for ApplyPatchCallOperationCreateFile
impl<'de> Deserialize<'de> for ApplyPatchCallOperationCreateFile
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
Auto Trait Implementations§
impl Freeze for ApplyPatchCallOperationCreateFile
impl RefUnwindSafe for ApplyPatchCallOperationCreateFile
impl Send for ApplyPatchCallOperationCreateFile
impl Sync for ApplyPatchCallOperationCreateFile
impl Unpin for ApplyPatchCallOperationCreateFile
impl UnsafeUnpin for ApplyPatchCallOperationCreateFile
impl UnwindSafe for ApplyPatchCallOperationCreateFile
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