pub struct ApplyPatchArgs {
pub raw: String,
}Expand description
Codex apply_patch tool arguments
Raw patch format used by Codex for both file creation and modification.
§Format
*** Begin Patch
*** Add File: path/to/file.rs
+content line 1
+content line 2
*** End Patchor
*** Begin Patch
*** Update File: path/to/file.rs
@@
context line
-old line
+new line
@@
another context
-another old
+another new
*** End PatchFields§
§raw: StringRaw patch content including Begin/End markers, file path header, and diff hunks
Implementations§
Trait Implementations§
Source§impl Clone for ApplyPatchArgs
impl Clone for ApplyPatchArgs
Source§fn clone(&self) -> ApplyPatchArgs
fn clone(&self) -> ApplyPatchArgs
Returns a duplicate of the value. Read more
1.0.0 · 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 ApplyPatchArgs
impl Debug for ApplyPatchArgs
Source§impl<'de> Deserialize<'de> for ApplyPatchArgs
impl<'de> Deserialize<'de> for ApplyPatchArgs
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 ApplyPatchArgs
impl RefUnwindSafe for ApplyPatchArgs
impl Send for ApplyPatchArgs
impl Sync for ApplyPatchArgs
impl Unpin for ApplyPatchArgs
impl UnwindSafe for ApplyPatchArgs
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