pub struct WebAppManifestBuilder { /* private fields */ }Expand description
Builder for WebAppManifest.
Implementations§
Source§impl WebAppManifestBuilder
impl WebAppManifestBuilder
pub fn background_color<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The extra description provided by the manifest.
pub fn dir<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn display<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn display_overrides<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn display_overrides<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The overrided display mode controlled by the user.
Sourcepub fn file_handlers<VALUE: Into<Vec<FileHandler>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn file_handlers<VALUE: Into<Vec<FileHandler>>>( &mut self, value: VALUE, ) -> &mut Self
The handlers to open files.
pub fn icons<VALUE: Into<Vec<ImageResource>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn launch_handler<VALUE: Into<LaunchHandler>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn launch_handler<VALUE: Into<LaunchHandler>>( &mut self, value: VALUE, ) -> &mut 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<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn orientation<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn protocol_handlers<VALUE: Into<Vec<ProtocolHandler>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn protocol_handlers<VALUE: Into<Vec<ProtocolHandler>>>( &mut self, value: VALUE, ) -> &mut Self
The handlers to open protocols.
pub fn scope<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn scope_extensions<VALUE: Into<Vec<ScopeExtension>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn scope_extensions<VALUE: Into<Vec<ScopeExtension>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn screenshots<VALUE: Into<Vec<Screenshot>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn screenshots<VALUE: Into<Vec<Screenshot>>>( &mut self, value: VALUE, ) -> &mut Self
The screenshots used by chromium.
pub fn short_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn shortcuts<VALUE: Into<Vec<Shortcut>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn start_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn theme_color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<WebAppManifest, WebAppManifestBuilderError>
pub fn build(&self) -> Result<WebAppManifest, WebAppManifestBuilderError>
Trait Implementations§
Source§impl Clone for WebAppManifestBuilder
impl Clone for WebAppManifestBuilder
Source§fn clone(&self) -> WebAppManifestBuilder
fn clone(&self) -> WebAppManifestBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WebAppManifestBuilder
impl RefUnwindSafe for WebAppManifestBuilder
impl Send for WebAppManifestBuilder
impl Sync for WebAppManifestBuilder
impl Unpin for WebAppManifestBuilder
impl UnsafeUnpin for WebAppManifestBuilder
impl UnwindSafe for WebAppManifestBuilder
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