pub struct PermissionRequestWrite {
pub can_offer_session_approval: bool,
pub diff: String,
pub file_name: String,
pub intention: String,
pub kind: PermissionRequestWriteKind,
pub new_file_contents: Option<String>,
pub tool_call_id: Option<String>,
}Expand description
File write permission request
Fields§
§can_offer_session_approval: boolWhether the UI can offer session-wide approval for file write operations
diff: StringUnified diff showing the proposed changes
file_name: StringPath of the file being written to
intention: StringHuman-readable description of the intended file change
kind: PermissionRequestWriteKindPermission kind discriminator
new_file_contents: Option<String>Complete new file contents for newly created files
tool_call_id: Option<String>Tool call ID that triggered this permission request
Trait Implementations§
Source§impl Clone for PermissionRequestWrite
impl Clone for PermissionRequestWrite
Source§fn clone(&self) -> PermissionRequestWrite
fn clone(&self) -> PermissionRequestWrite
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 PermissionRequestWrite
impl Debug for PermissionRequestWrite
Source§impl<'de> Deserialize<'de> for PermissionRequestWrite
impl<'de> Deserialize<'de> for PermissionRequestWrite
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 PermissionRequestWrite
impl RefUnwindSafe for PermissionRequestWrite
impl Send for PermissionRequestWrite
impl Sync for PermissionRequestWrite
impl Unpin for PermissionRequestWrite
impl UnsafeUnpin for PermissionRequestWrite
impl UnwindSafe for PermissionRequestWrite
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