wick_oci_utils/
manifest.rs

1use std::path::PathBuf;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6#[must_use]
7pub struct AssetManifest {
8  pub(crate) root: PathBuf,
9  pub(crate) version: String,
10}
11
12impl AssetManifest {
13  pub const FILENAME: &str = ".wick-manifest.json";
14  pub const fn new(root: PathBuf, version: String) -> Self {
15    Self { root, version }
16  }
17
18  #[must_use]
19  pub const fn root(&self) -> &PathBuf {
20    &self.root
21  }
22
23  #[must_use]
24  pub const fn version(&self) -> &String {
25    &self.version
26  }
27}