1
0
forked from brl/citadel-tools

add 'realmfs-name' as a potential metainfo field

This commit is contained in:
Bruce Leidl 2019-01-29 13:40:35 -05:00
parent c13fb5fb61
commit 322fa97f6a

View File

@ -298,6 +298,8 @@ struct MetaInfoToml {
kernel_version: Option<String>, kernel_version: Option<String>,
#[serde(rename = "kernel-id")] #[serde(rename = "kernel-id")]
kernel_id: Option<String>, kernel_id: Option<String>,
#[serde(rename = "realmfs-name")]
realmfs_name: Option<String>,
version: u32, version: u32,
timestamp: String, timestamp: String,
#[serde(rename = "base-version")] #[serde(rename = "base-version")]
@ -347,6 +349,8 @@ impl MetaInfo {
pub fn kernel_id(&self) -> Option<&str> { self.toml().kernel_id.as_ref().map(|s| s.as_str()) } pub fn kernel_id(&self) -> Option<&str> { self.toml().kernel_id.as_ref().map(|s| s.as_str()) }
pub fn realmfs_name(&self) -> Option<&str> { self.toml().realmfs_name.as_ref().map(|s| s.as_str()) }
pub fn version(&self) -> u32 { pub fn version(&self) -> u32 {
self.toml().version self.toml().version
} }