[][src]Crate webmanifest

Example

extern crate webmanifest;
extern crate failure;

use webmanifest::{Manifest, Related};

fn main() -> Result<(), failure::Error> {
  let name = "My Cool Application";
  let url = "https://play.google.com/store/apps/details?id=cheeaun.hackerweb";
  let manifest = Manifest::builder(name)
    .short_name("my app")
    .bg_color("#000")
    .related(&Related::new("play", url))
    .build()?;
  Ok(())
}

Structs

Icon

Add an icon to the web manifest.

Manifest

Create a new manifest builder.

Related

An entry in an array of native applications that are installable by, or accessible to, the underlying platform.

Enums

Direction

Specifies the primary text direction for the name, short_name, and description members.

DisplayMode

Defines the developers’ preferred display mode for the website.

Orientation

Defines the default orientation for all the website's top level browsing contexts. Read more.

Constants

MIME_TYPE_STR

The MIME type for .webmanifest files.