pub struct CacheEntry {
pub cmd_name: String,
pub cmd_dir: PathBuf,
pub cache_path: PathBuf,
pub source_config: Option<PathBuf>,
}Expand description
One cached schema discovered on disk.
Fields§
§cmd_name: StringCommand name (filename stem).
cmd_dir: PathBufDirectory that holds the command’s fdl.yml and .fdl/.
cache_path: PathBufFull path to the cache JSON file.
source_config: Option<PathBuf>Path to the command’s primary config file (the mtime anchor).
None when no fdl.yml / fdl.yaml / fdl.json was found — the
cache exists but has no reference to compare against, which is
reported as a dedicated status.
Implementations§
Source§impl CacheEntry
impl CacheEntry
pub fn status(&self) -> CacheStatus
Auto Trait Implementations§
impl Freeze for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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