pub struct ApplyPatchApprovalParams {
pub call_id: String,
pub conversation_id: ThreadId,
pub file_changes: HashMap<String, FileChange>,
pub grant_root: Option<String>,
pub reason: Option<String>,
}Expand description
ApplyPatchApprovalParams
JSON schema
{
"title": "ApplyPatchApprovalParams",
"type": "object",
"required": [
"callId",
"conversationId",
"fileChanges"
],
"properties": {
"callId": {
"description": "Use to correlate this with [codex_protocol::protocol::PatchApplyBeginEvent] and [codex_protocol::protocol::PatchApplyEndEvent].",
"type": "string"
},
"conversationId": {
"$ref": "#/definitions/ThreadId"
},
"fileChanges": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/FileChange"
}
},
"grantRoot": {
"description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).",
"type": [
"string",
"null"
]
},
"reason": {
"description": "Optional explanatory reason (e.g. request for extra write access).",
"type": [
"string",
"null"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Fields§
§call_id: StringUse to correlate this with [codex_protocol::protocol::PatchApplyBeginEvent] and [codex_protocol::protocol::PatchApplyEndEvent].
conversation_id: ThreadId§file_changes: HashMap<String, FileChange>§grant_root: Option<String>When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).
reason: Option<String>Optional explanatory reason (e.g. request for extra write access).
Trait Implementations§
Source§impl Clone for ApplyPatchApprovalParams
impl Clone for ApplyPatchApprovalParams
Source§fn clone(&self) -> ApplyPatchApprovalParams
fn clone(&self) -> ApplyPatchApprovalParams
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 ApplyPatchApprovalParams
impl Debug for ApplyPatchApprovalParams
Source§impl<'de> Deserialize<'de> for ApplyPatchApprovalParams
impl<'de> Deserialize<'de> for ApplyPatchApprovalParams
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 ApplyPatchApprovalParams
impl RefUnwindSafe for ApplyPatchApprovalParams
impl Send for ApplyPatchApprovalParams
impl Sync for ApplyPatchApprovalParams
impl Unpin for ApplyPatchApprovalParams
impl UnsafeUnpin for ApplyPatchApprovalParams
impl UnwindSafe for ApplyPatchApprovalParams
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