linuxkit_utils/manifest/file_entry.rs
1use super::JsValue;
2use crate::EnvSubst;
3
4#[derive(Debug, Clone, PartialEq, ::serde::Serialize, ::serde::Deserialize)]
5pub struct FileEntry(pub JsValue);
6
7impl EnvSubst for FileEntry {
8 fn env_subst(
9 &self,
10 context: &std::collections::HashMap<String, String>,
11 ) -> Result<Self, envsubst::Error> {
12 Ok(Self(self.0.env_subst(context)?))
13 }
14}