pub struct OperationError {
pub message: String,
pub operation_type: String,
pub target: String,
pub allow_retry: bool,
pub allow_edit: bool,
}Expand description
Information about an operation error for display/handling.
Fields§
§message: StringHuman-readable error message.
operation_type: StringOperation type that failed (e.g. “bash_execute”, “file_write”).
target: StringTarget of the operation (file path, command, etc.).
allow_retry: boolWhether retry is a valid option.
allow_edit: boolWhether edit-and-retry is a valid option.
Trait Implementations§
Source§impl Clone for OperationError
impl Clone for OperationError
Source§fn clone(&self) -> OperationError
fn clone(&self) -> OperationError
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 moreAuto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnsafeUnpin for OperationError
impl UnwindSafe for OperationError
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