(id: String, project_path: PathBuf)
| 22 | |
| 23 | impl Session { |
| 24 | pub fn new(id: String, project_path: PathBuf) -> Self { |
| 25 | let now = Utc::now(); |
| 26 | Self { |
| 27 | id, |
| 28 | project_path, |
| 29 | created_at: now, |
| 30 | last_active: now, |
| 31 | history: Vec::new(), |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | pub fn record(&mut self, method: &str, path: &str, response_preview: &str) { |
| 36 | self.last_active = Utc::now(); |
nothing calls this directly
no outgoing calls
no test coverage detected