pub struct WebAppManifestBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> WebAppManifestBuilder<'a>
impl<'a> WebAppManifestBuilder<'a>
pub fn background_color(self, background_color: 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 display_overrides(self, display_overrides: Vec<Cow<'a, str>>) -> Self
pub fn display_overrides(self, display_overrides: Vec<Cow<'a, str>>) -> Self
The overrided display mode controlled by the user.
Sourcepub fn file_handlers(self, file_handlers: Vec<FileHandler<'a>>) -> Self
pub fn file_handlers(self, file_handlers: 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 launch_handler(self, launch_handler: LaunchHandler<'a>) -> Self
pub fn launch_handler(self, launch_handler: 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
Sourcepub fn protocol_handlers(
self,
protocol_handlers: Vec<ProtocolHandler<'a>>,
) -> Self
pub fn protocol_handlers( self, protocol_handlers: Vec<ProtocolHandler<'a>>, ) -> Self
The handlers to open protocols.
pub fn scope(self, scope: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn scope_extensions(self, scope_extensions: Vec<ScopeExtension<'a>>) -> Self
pub fn scope_extensions(self, scope_extensions: Vec<ScopeExtension<'a>>) -> Self
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 short_name(self, short_name: impl Into<Cow<'a, str>>) -> Self
pub fn shortcuts(self, shortcuts: Vec<Shortcut<'a>>) -> Self
pub fn start_url(self, start_url: impl Into<Cow<'a, str>>) -> Self
pub fn theme_color(self, theme_color: 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