ffxiv-screenshot-organiser/src/state.rs

21 lines
373 B
Rust
Raw Normal View History

2018-08-13 23:01:36 +00:00
use chrono::{DateTime, Utc};
use std::path::PathBuf;
#[derive(Debug)]
pub struct State {
pub file_paths: Vec<PathBuf>,
pub datetime: DateTime<Utc>,
pub temp_dir: PathBuf,
2018-08-13 23:01:36 +00:00
}
impl State {
pub fn new(file_path: PathBuf, datetime: DateTime<Utc>, temp_dir: PathBuf) -> Self {
2018-08-13 23:01:36 +00:00
State {
datetime,
temp_dir,
2018-08-13 23:01:36 +00:00
file_paths: vec![file_path],
}
}
}