pub struct OperationResult {
pub id: Uuid,
pub success: bool,
pub operation: String,
pub path: PathBuf,
pub error: Option<String>,
pub timestamp: DateTime<Utc>,
pub indexed: bool,
pub undo_id: Option<Uuid>,
trash_id: Option<Uuid>,
}Expand description
Result of a single operation.
Fields§
§id: UuidUnique identifier for this operation
success: boolWhether the operation succeeded
operation: StringType of operation performed
path: PathBufPrimary path involved
error: Option<String>Error message if failed
timestamp: DateTime<Utc>Timestamp of the operation
indexed: boolWhether the file was indexed/reindexed
undo_id: Option<Uuid>SafetyManager history id — write this to .safety/.undo
trash_id: Option<Uuid>Soft-delete trash entry used by atomic batch rollback (not in .result JSON)
Implementations§
Trait Implementations§
Source§impl Clone for OperationResult
impl Clone for OperationResult
Source§impl Debug for OperationResult
impl Debug for OperationResult
Source§impl<'de> Deserialize<'de> for OperationResult
impl<'de> Deserialize<'de> for OperationResult
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 OperationResult
impl RefUnwindSafe for OperationResult
impl Send for OperationResult
impl Sync for OperationResult
impl Unpin for OperationResult
impl UnsafeUnpin for OperationResult
impl UnwindSafe for OperationResult
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