diff options
Diffstat (limited to 'mling/src/res/manifest_path.rs')
| -rw-r--r-- | mling/src/res/manifest_path.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mling/src/res/manifest_path.rs b/mling/src/res/manifest_path.rs new file mode 100644 index 0000000..7f1686e --- /dev/null +++ b/mling/src/res/manifest_path.rs @@ -0,0 +1,13 @@ +use std::path::PathBuf; + +#[derive(Default, Clone)] +pub struct ResManifestPath { + pub raw: Option<String>, + pub resolved: Option<PathBuf>, +} + +impl ResManifestPath { + pub fn resolved(&self) -> &PathBuf { + self.resolved.as_ref().unwrap() + } +} |
