Add to all icon_url places

This commit is contained in:
Jaco Greeff 2017-11-20 13:37:23 +01:00
parent 6fe361b382
commit d8e86cfe0a
5 changed files with 5 additions and 1 deletions

View File

@ -38,6 +38,7 @@ pub struct Info {
pub author: &'static str, pub author: &'static str,
pub description: &'static str, pub description: &'static str,
pub icon_url: &'static str, pub icon_url: &'static str,
pub local_url: &'static str,
} }
pub trait WebApp : Default + Send + Sync { pub trait WebApp : Default + Send + Sync {

View File

@ -27,7 +27,7 @@ pub struct App {
#[serde(rename="iconUrl")] #[serde(rename="iconUrl")]
pub icon_url: String, pub icon_url: String,
#[serde(rename="localUrl")] #[serde(rename="localUrl")]
pub local_url: String; pub local_url: String,
} }
impl App { impl App {

View File

@ -306,6 +306,7 @@ mod tests {
version: "".into(), version: "".into(),
author: "".into(), author: "".into(),
icon_url: "".into(), icon_url: "".into(),
local_url: "".into(),
}, Default::default(), None); }, Default::default(), None);
// when // when

View File

@ -56,6 +56,7 @@ fn read_manifest(name: &str, mut path: PathBuf) -> EndpointInfo {
version: "0.0.0".into(), version: "0.0.0".into(),
author: "?".into(), author: "?".into(),
icon_url: "icon.png".into(), icon_url: "icon.png".into(),
local_url: "".into(),
} }
}) })
} }

View File

@ -132,6 +132,7 @@ impl From<Info> for EndpointInfo {
description: info.description.into(), description: info.description.into(),
author: info.author.into(), author: info.author.into(),
icon_url: info.icon_url.into(), icon_url: info.icon_url.into(),
local_url: info.local_url.into(),
version: info.version.into(), version: info.version.into(),
} }
} }