Enum webmanifest::DisplayMode
source · pub enum DisplayMode {
FullScreen,
Standalone,
MinimalUi,
Browser,
}
Expand description
Defines the developers’ preferred display mode for the website.
Example
let name = "My Cool Application";
let manifest = Manifest::builder(name)
.display_mode(DisplayMode::Standalone)
.build()?;
Variants§
FullScreen
All of the available display area is used and no user agent chrome is shown.
Standalone
The application will look and feel like a standalone application. This can include the application having a different window, its own icon in the application launcher, etc. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar.
MinimalUi
The application will look and feel like a standalone application, but will have a minimal set of UI elements for controlling navigation. The elements will vary by browser.
Browser
The application opens in a conventional browser tab or new window, depending on the browser and platform. This is the default.
Trait Implementations§
source§impl Clone for DisplayMode
impl Clone for DisplayMode
source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisplayMode
impl Debug for DisplayMode
source§impl<'de> Deserialize<'de> for DisplayMode
impl<'de> Deserialize<'de> for DisplayMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more