scsys_agents/actors/handlers/
files.rs

1/*
2    Appellation: files <module>
3    Creator: FL03 <jo3mccain@icloud.com>
4    Description:
5        ... Summary ...
6*/
7use serde::{Deserialize, Serialize};
8
9#[derive(Clone, Debug, Default, Deserialize, Eq, Hash, PartialEq, Serialize)]
10pub struct FileHandler {
11    pub path: String,
12}
13
14impl FileHandler {
15    pub fn new(path: String) -> Self {
16        Self { path }
17    }
18}
19
20pub trait DocumentHandler {
21    fn path(&self) -> String;
22}