pub struct FileChangeApprovalParams {
pub thread_id: String,
pub turn_id: String,
pub call_id: String,
pub changes: Value,
pub reason: Option<String>,
}Expand description
Parameters for item/fileChange/requestApproval (server → client).
The server sends this as a ServerMessage::Request when the agent wants
to modify files and requires user approval. Respond with
FileChangeApprovalResponse.
Fields§
§thread_id: String§turn_id: String§call_id: StringUnique identifier for this tool call.
changes: ValueThe proposed file changes (structure varies by patch format).
reason: Option<String>Human-readable explanation of why the changes are needed.
Trait Implementations§
Source§impl Clone for FileChangeApprovalParams
impl Clone for FileChangeApprovalParams
Source§fn clone(&self) -> FileChangeApprovalParams
fn clone(&self) -> FileChangeApprovalParams
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 FileChangeApprovalParams
impl Debug for FileChangeApprovalParams
Source§impl<'de> Deserialize<'de> for FileChangeApprovalParams
impl<'de> Deserialize<'de> for FileChangeApprovalParams
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 FileChangeApprovalParams
impl RefUnwindSafe for FileChangeApprovalParams
impl Send for FileChangeApprovalParams
impl Sync for FileChangeApprovalParams
impl Unpin for FileChangeApprovalParams
impl UnsafeUnpin for FileChangeApprovalParams
impl UnwindSafe for FileChangeApprovalParams
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