pub struct FileAccess {
pub path: String,
pub operation: FileOperation,
pub timestamp: u64,
pub context: Option<String>,
}Expand description
A file access event within a session.
Fields§
§path: StringFile path (relative when possible, truncated to 200 chars).
operation: FileOperationType of operation performed.
timestamp: u64Unix timestamp of the access.
context: Option<String>Truncated prompt context that led to this access.
Trait Implementations§
Source§impl Clone for FileAccess
impl Clone for FileAccess
Source§impl Debug for FileAccess
impl Debug for FileAccess
Source§impl<'de> Deserialize<'de> for FileAccess
impl<'de> Deserialize<'de> for FileAccess
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 FileAccess
impl RefUnwindSafe for FileAccess
impl Send for FileAccess
impl Sync for FileAccess
impl Unpin for FileAccess
impl UnsafeUnpin for FileAccess
impl UnwindSafe for FileAccess
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