pub struct FileOperationContext {
pub operation: FileOperation,
pub file_path: PathBuf,
pub purpose: String,
pub caller: String,
pub related_paths: Vec<PathBuf>,
}Expand description
Detailed file operation context for better error messages
Fields§
§operation: FileOperationThe type of operation being performed
file_path: PathBufThe file path being accessed
purpose: StringAdditional context about why the file is being accessed
caller: StringThe resource/caller that initiated the operation
Optional related paths (e.g., project directory)
Implementations§
Trait Implementations§
Source§impl Clone for FileOperationContext
impl Clone for FileOperationContext
Source§fn clone(&self) -> FileOperationContext
fn clone(&self) -> FileOperationContext
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 FileOperationContext
impl RefUnwindSafe for FileOperationContext
impl Send for FileOperationContext
impl Sync for FileOperationContext
impl Unpin for FileOperationContext
impl UnwindSafe for FileOperationContext
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