pub struct SuggestedEdit {
pub file_path: String,
pub range: ByteRange,
pub replacement: String,
pub title: Option<String>,
}Expand description
A raw suggested edit emitted by a harness. The app layer prepares these into previewable drafts; this is the transport shape.
Fields§
§file_path: String§range: ByteRange§replacement: String§title: Option<String>Trait Implementations§
Source§impl Clone for SuggestedEdit
impl Clone for SuggestedEdit
Source§fn clone(&self) -> SuggestedEdit
fn clone(&self) -> SuggestedEdit
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 SuggestedEdit
impl Debug for SuggestedEdit
Source§impl PartialEq for SuggestedEdit
impl PartialEq for SuggestedEdit
Source§fn eq(&self, other: &SuggestedEdit) -> bool
fn eq(&self, other: &SuggestedEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SuggestedEdit
impl Serialize for SuggestedEdit
impl Eq for SuggestedEdit
impl StructuralPartialEq for SuggestedEdit
Auto Trait Implementations§
impl Freeze for SuggestedEdit
impl RefUnwindSafe for SuggestedEdit
impl Send for SuggestedEdit
impl Sync for SuggestedEdit
impl Unpin for SuggestedEdit
impl UnsafeUnpin for SuggestedEdit
impl UnwindSafe for SuggestedEdit
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