pub struct ApplyPatchToolCall {
pub id: String,
pub call_id: String,
pub status: ApplyPatchCallStatus,
pub operation: ApplyPatchOperation,
pub created_by: Option<String>,
}Available on crate feature
response-types only.Expand description
A tool call that applies file diffs by creating, deleting, or updating files.
Fields§
§id: StringThe unique ID of the apply patch tool call. Populated when this item is returned via API.
call_id: StringThe unique ID of the apply patch tool call generated by the model.
status: ApplyPatchCallStatusThe status of the apply patch tool call. One of in_progress or completed.
operation: ApplyPatchOperationOne of the create_file, delete_file, or update_file operations applied via apply_patch.
created_by: Option<String>The ID of the entity that created this tool call.
Trait Implementations§
Source§impl Clone for ApplyPatchToolCall
impl Clone for ApplyPatchToolCall
Source§fn clone(&self) -> ApplyPatchToolCall
fn clone(&self) -> ApplyPatchToolCall
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 ApplyPatchToolCall
impl Debug for ApplyPatchToolCall
Source§impl<'de> Deserialize<'de> for ApplyPatchToolCall
impl<'de> Deserialize<'de> for ApplyPatchToolCall
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 PartialEq for ApplyPatchToolCall
impl PartialEq for ApplyPatchToolCall
Source§impl Serialize for ApplyPatchToolCall
impl Serialize for ApplyPatchToolCall
impl StructuralPartialEq for ApplyPatchToolCall
Auto Trait Implementations§
impl Freeze for ApplyPatchToolCall
impl RefUnwindSafe for ApplyPatchToolCall
impl Send for ApplyPatchToolCall
impl Sync for ApplyPatchToolCall
impl Unpin for ApplyPatchToolCall
impl UnwindSafe for ApplyPatchToolCall
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