globetrotter_java/config.rs
1//! Java output configuration.
2
3use std::path::PathBuf;
4
5/// Configuration for Java translation code generation outputs.
6#[derive(Debug, Clone, PartialEq, Eq, Hash)]
7#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
8pub struct OutputConfig {
9 /// File system paths where generated Java translation bindings will be written.
10 #[cfg_attr(feature = "serde", serde(default))]
11 pub output_paths: Vec<PathBuf>,
12}
13
14impl OutputConfig {
15 /// Returns `true` if there are no configured output paths.
16 #[must_use]
17 pub fn is_empty(&self) -> bool {
18 self.output_paths.is_empty()
19 }
20}