Crate webmanifest
source ·Expand description
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
Add an icon to the web manifest.
Create a new manifest builder.
An entry in an array of native applications that are installable by, or
accessible to, the underlying platform.
Enums
Specifies the primary text direction for the
name
, short_name
, and
description
members.Defines the developers’ preferred display mode for the website.
Defines the default orientation for all the website’s top level browsing
contexts. Read more.
Constants
The MIME type for
.webmanifest
files.