pub struct EditResult {
pub success: bool,
pub file_path: String,
pub lines_added: u64,
pub lines_removed: u64,
pub backup_path: Option<String>,
pub error: Option<String>,
pub operation_id: Option<String>,
pub diff: Option<String>,
pub interrupted: bool,
}Expand description
Result of a file edit operation.
Fields§
§success: bool§file_path: String§lines_added: u64§lines_removed: u64§backup_path: Option<String>§error: Option<String>§operation_id: Option<String>§diff: Option<String>Diff preview for the edit.
interrupted: boolTrue if operation was interrupted.
Trait Implementations§
Source§impl Clone for EditResult
impl Clone for EditResult
Source§fn clone(&self) -> EditResult
fn clone(&self) -> EditResult
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 EditResult
impl Debug for EditResult
Source§impl<'de> Deserialize<'de> for EditResult
impl<'de> Deserialize<'de> for EditResult
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 EditResult
impl RefUnwindSafe for EditResult
impl Send for EditResult
impl Sync for EditResult
impl Unpin for EditResult
impl UnsafeUnpin for EditResult
impl UnwindSafe for EditResult
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