pub struct PathEntry {
pub cmd: Option<String>,
pub path: PathBuf,
pub recursive: Option<bool>,
pub types: Option<Vec<String>>,
pub size: Option<String>,
}Expand description
A single monitored path entry (flat form) — used for internal transport between Monitored store, Monitor, socket, and CLI commands. Not serialized to monitored.jsonl anymore.
Fields§
§cmd: Option<String>Process name for process-tree tracking.
None means "_global" (no specific process).
path: PathBufFilesystem path to monitor.
recursive: Option<bool>Watch subdirectories recursively.
types: Option<Vec<String>>Only monitor specified event types (e.g. ["MODIFY", "CREATE"]).
size: Option<String>Size filter with comparison operator (e.g. >1MB, >=500KB, <100MB).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathEntry
impl<'de> Deserialize<'de> for PathEntry
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
Source§impl From<&PathEntry> for PathParams
impl From<&PathEntry> for PathParams
Auto Trait Implementations§
impl Freeze for PathEntry
impl RefUnwindSafe for PathEntry
impl Send for PathEntry
impl Sync for PathEntry
impl Unpin for PathEntry
impl UnsafeUnpin for PathEntry
impl UnwindSafe for PathEntry
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