pub struct DiffReviewRequest {
pub old_file_path: PathBuf,
pub new_file_path: PathBuf,
pub new_contents: String,
pub tab_name: String,
pub origin_session: u64,
}Expand description
A proposed edit awaiting the user’s verdict.
Fields§
§old_file_path: PathBufBaseline path; its on-disk content is the left (read-only) side.
new_file_path: PathBufPath the proposed content carries. An Accept writes the right side here.
Usually equals old_file_path (an in-place edit).
new_contents: StringThe proposed text — the editable right side.
tab_name: StringDisplay label for the diff. Presentation only; teardown keys on
origin_session.
origin_session: u64The originating agent session. Tags the diff so a later session-scoped
close from this session tears it down. 0 means “no origin”.
Trait Implementations§
Source§impl Clone for DiffReviewRequest
impl Clone for DiffReviewRequest
Source§fn clone(&self) -> DiffReviewRequest
fn clone(&self) -> DiffReviewRequest
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 DiffReviewRequest
impl Debug for DiffReviewRequest
impl Eq for DiffReviewRequest
Source§impl PartialEq for DiffReviewRequest
impl PartialEq for DiffReviewRequest
impl StructuralPartialEq for DiffReviewRequest
Auto Trait Implementations§
impl Freeze for DiffReviewRequest
impl RefUnwindSafe for DiffReviewRequest
impl Send for DiffReviewRequest
impl Sync for DiffReviewRequest
impl Unpin for DiffReviewRequest
impl UnsafeUnpin for DiffReviewRequest
impl UnwindSafe for DiffReviewRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more