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