Struct webmanifest::Icon[][src]

pub struct Icon<'s> { /* fields omitted */ }

Add an icon to the web manifest.

Example Output

"icons": [{
  "src": "images/touch/homescreen48.png",
  "sizes": "48x48",
  "type": "image/png"
}, {
  "src": "images/touch/homescreen72.png",
  "sizes": "72x72",
  "type": "image/png"
}, {
  "src": "images/touch/homescreen96.png",
  "sizes": "96x96",
  "type": "image/png"
}, {
  "src": "images/touch/homescreen144.png",
  "sizes": "144x144",
  "type": "image/png"
}, {
  "src": "images/touch/homescreen168.png",
  "sizes": "168x168",
  "type": "image/png"
}, {
  "src": "images/touch/homescreen192.png",
  "sizes": "192x192",
  "type": "image/png"
}],

Methods

impl<'s> Icon<'s>
[src]

Create a new Icon instance.

Example

let src = "images/touch/homescreen48.png";
let icon = Icon::new(&src, "48x48");

Trait Implementations

impl<'s> Debug for Icon<'s>
[src]

Formats the value using the given formatter. Read more

impl<'s> Clone for Icon<'s>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'s> Send for Icon<'s>

impl<'s> Sync for Icon<'s>