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>,
}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>ID for undoing this operation (if reversible)
Implementations§
Trait Implementations§
Source§impl Clone for OperationResult
impl Clone for OperationResult
Source§fn clone(&self) -> OperationResult
fn clone(&self) -> OperationResult
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 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 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