Allow localUrl in manifest

This commit is contained in:
Jaco Greeff 2017-11-20 12:05:03 +01:00
parent 4a6b103f0e
commit 6fe361b382
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,8 @@ pub struct App {
pub author: String,
#[serde(rename="iconUrl")]
pub icon_url: String,
#[serde(rename="localUrl")]
pub local_url: String;
}
impl App {
@ -38,6 +40,7 @@ impl App {
version: info.version.to_owned(),
author: info.author.to_owned(),
icon_url: info.icon_url.to_owned(),
local_url: info.local_url.to_owned(),
}
}
}
@ -50,6 +53,7 @@ impl Into<EndpointInfo> for App {
version: self.version,
author: self.author,
icon_url: self.icon_url,
local_url: self.local_url,
}
}
}

View File

@ -44,6 +44,7 @@ pub struct EndpointInfo {
pub version: String,
pub author: String,
pub icon_url: String,
pub local_url: String,
}
pub type Endpoints = BTreeMap<String, Box<Endpoint>>;