pub struct WebAppManifestBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> WebAppManifestBuilder<'a>
impl<'a> WebAppManifestBuilder<'a>
pub fn backgroundColor(self, backgroundColor: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn description(self, description: impl Into<Cow<'a, str>>) -> Self
pub fn description(self, description: impl Into<Cow<'a, str>>) -> Self
The extra description provided by the manifest.
pub fn dir(self, dir: impl Into<Cow<'a, str>>) -> Self
pub fn display(self, display: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn displayOverrides(self, displayOverrides: Vec<Cow<'a, str>>) -> Self
pub fn displayOverrides(self, displayOverrides: Vec<Cow<'a, str>>) -> Self
The overrided display mode controlled by the user.
Sourcepub fn fileHandlers(self, fileHandlers: Vec<FileHandler<'a>>) -> Self
pub fn fileHandlers(self, fileHandlers: Vec<FileHandler<'a>>) -> Self
The handlers to open files.
pub fn icons(self, icons: Vec<ImageResource<'a>>) -> Self
pub fn id(self, id: impl Into<Cow<'a, str>>) -> Self
pub fn lang(self, lang: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn launchHandler(self, launchHandler: LaunchHandler<'a>) -> Self
pub fn launchHandler(self, launchHandler: LaunchHandler<'a>) -> Self
TODO(crbug.com/1231886): This field is non-standard and part of a Chrome experiment. See: https://github.com/WICG/web-app-launch/blob/main/launch_handler.md
pub fn name(self, name: impl Into<Cow<'a, str>>) -> Self
pub fn orientation(self, orientation: impl Into<Cow<'a, str>>) -> Self
pub fn preferRelatedApplications(self, preferRelatedApplications: bool) -> Self
Sourcepub fn protocolHandlers(
self,
protocolHandlers: Vec<ProtocolHandler<'a>>,
) -> Self
pub fn protocolHandlers( self, protocolHandlers: Vec<ProtocolHandler<'a>>, ) -> Self
The handlers to open protocols.
pub fn scope(self, scope: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn scopeExtensions(self, scopeExtensions: Vec<ScopeExtension<'a>>) -> Self
pub fn scopeExtensions(self, scopeExtensions: Vec<ScopeExtension<'a>>) -> Self
Non-standard, see https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
Sourcepub fn screenshots(self, screenshots: Vec<Screenshot<'a>>) -> Self
pub fn screenshots(self, screenshots: Vec<Screenshot<'a>>) -> Self
The screenshots used by chromium.
pub fn shortName(self, shortName: impl Into<Cow<'a, str>>) -> Self
pub fn shortcuts(self, shortcuts: Vec<Shortcut<'a>>) -> Self
pub fn startUrl(self, startUrl: impl Into<Cow<'a, str>>) -> Self
pub fn themeColor(self, themeColor: impl Into<Cow<'a, str>>) -> Self
pub fn build(self) -> WebAppManifest<'a>
Trait Implementations§
Source§impl<'a> Default for WebAppManifestBuilder<'a>
impl<'a> Default for WebAppManifestBuilder<'a>
Source§fn default() -> WebAppManifestBuilder<'a>
fn default() -> WebAppManifestBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for WebAppManifestBuilder<'a>
impl<'a> RefUnwindSafe for WebAppManifestBuilder<'a>
impl<'a> Send for WebAppManifestBuilder<'a>
impl<'a> Sync for WebAppManifestBuilder<'a>
impl<'a> Unpin for WebAppManifestBuilder<'a>
impl<'a> UnsafeUnpin for WebAppManifestBuilder<'a>
impl<'a> UnwindSafe for WebAppManifestBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more