Add to all icon_url places
This commit is contained in:
parent
6fe361b382
commit
d8e86cfe0a
@ -38,6 +38,7 @@ pub struct Info {
|
||||
pub author: &'static str,
|
||||
pub description: &'static str,
|
||||
pub icon_url: &'static str,
|
||||
pub local_url: &'static str,
|
||||
}
|
||||
|
||||
pub trait WebApp : Default + Send + Sync {
|
||||
|
@ -27,7 +27,7 @@ pub struct App {
|
||||
#[serde(rename="iconUrl")]
|
||||
pub icon_url: String,
|
||||
#[serde(rename="localUrl")]
|
||||
pub local_url: String;
|
||||
pub local_url: String,
|
||||
}
|
||||
|
||||
impl App {
|
||||
|
@ -306,6 +306,7 @@ mod tests {
|
||||
version: "".into(),
|
||||
author: "".into(),
|
||||
icon_url: "".into(),
|
||||
local_url: "".into(),
|
||||
}, Default::default(), None);
|
||||
|
||||
// when
|
||||
|
@ -56,6 +56,7 @@ fn read_manifest(name: &str, mut path: PathBuf) -> EndpointInfo {
|
||||
version: "0.0.0".into(),
|
||||
author: "?".into(),
|
||||
icon_url: "icon.png".into(),
|
||||
local_url: "".into(),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -132,6 +132,7 @@ impl From<Info> for EndpointInfo {
|
||||
description: info.description.into(),
|
||||
author: info.author.into(),
|
||||
icon_url: info.icon_url.into(),
|
||||
local_url: info.local_url.into(),
|
||||
version: info.version.into(),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user