pub struct ProposedEdit {
pub path: String,
pub kind: String,
pub before: Option<String>,
pub after: Option<String>,
}Expand description
A single filesystem change the agent proposed during a turn, computed but
not applied. The IDE renders each as a diff (before → after) the
user accepts or rejects.
Fields§
§path: StringPath relative to the workspace root.
kind: String"create", "modify", or "delete", derived from before/after.
before: Option<String>File contents before the turn (None if the file did not exist).
after: Option<String>File contents after the proposed change (None if deleted).
Trait Implementations§
Source§impl Clone for ProposedEdit
impl Clone for ProposedEdit
Source§fn clone(&self) -> ProposedEdit
fn clone(&self) -> ProposedEdit
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 ProposedEdit
impl Debug for ProposedEdit
Source§impl<'de> Deserialize<'de> for ProposedEdit
impl<'de> Deserialize<'de> for ProposedEdit
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 ProposedEdit
impl RefUnwindSafe for ProposedEdit
impl Send for ProposedEdit
impl Sync for ProposedEdit
impl Unpin for ProposedEdit
impl UnsafeUnpin for ProposedEdit
impl UnwindSafe for ProposedEdit
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