globetrotter_rust/
config.rs1use std::path::PathBuf;
2
3#[derive(Debug, Clone, PartialEq, Eq, Hash)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct OutputConfig {
7 #[cfg_attr(feature = "serde", serde(default))]
9 pub output_paths: Vec<PathBuf>,
10}
11
12impl OutputConfig {
13 pub fn new(paths: impl IntoIterator<Item = PathBuf>) -> Self {
15 Self {
16 output_paths: paths.into_iter().collect(),
17 }
18 }
19
20 #[must_use]
22 pub fn is_empty(&self) -> bool {
23 self.output_paths.is_empty()
24 }
25}