pub struct OperationCreateFile {
pub diff: String,
pub path: String,
pub type_: String,
}Expand description
Instruction describing how to create a file via the apply_patch tool.
Fields§
§diff: StringDiff to apply.
path: StringPath of the file to create.
type_: StringCreate a new file with the provided diff.
Trait Implementations§
Source§impl Clone for OperationCreateFile
impl Clone for OperationCreateFile
Source§fn clone(&self) -> OperationCreateFile
fn clone(&self) -> OperationCreateFile
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 OperationCreateFile
impl Debug for OperationCreateFile
Source§impl<'de> Deserialize<'de> for OperationCreateFile
impl<'de> Deserialize<'de> for OperationCreateFile
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 OperationCreateFile
impl RefUnwindSafe for OperationCreateFile
impl Send for OperationCreateFile
impl Sync for OperationCreateFile
impl Unpin for OperationCreateFile
impl UnsafeUnpin for OperationCreateFile
impl UnwindSafe for OperationCreateFile
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