pub struct WebAppManifest<'a> { /* private fields */ }Implementations§
Source§impl<'a> WebAppManifest<'a>
impl<'a> WebAppManifest<'a>
Sourcepub fn builder() -> WebAppManifestBuilder<'a>
pub fn builder() -> WebAppManifestBuilder<'a>
Creates a builder for this type.
pub fn background_color(&self) -> Option<&str>
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The extra description provided by the manifest.
pub fn dir(&self) -> Option<&str>
pub fn display(&self) -> Option<&str>
Sourcepub fn display_overrides(&self) -> Option<&[Cow<'a, str>]>
pub fn display_overrides(&self) -> Option<&[Cow<'a, str>]>
The overrided display mode controlled by the user.
Sourcepub fn file_handlers(&self) -> Option<&[FileHandler<'a>]>
pub fn file_handlers(&self) -> Option<&[FileHandler<'a>]>
The handlers to open files.
pub fn icons(&self) -> Option<&[ImageResource<'a>]>
pub fn id(&self) -> Option<&str>
pub fn lang(&self) -> Option<&str>
Sourcepub fn launch_handler(&self) -> Option<&LaunchHandler<'a>>
pub fn launch_handler(&self) -> Option<&LaunchHandler<'a>>
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) -> Option<&str>
pub fn orientation(&self) -> Option<&str>
Sourcepub fn protocol_handlers(&self) -> Option<&[ProtocolHandler<'a>]>
pub fn protocol_handlers(&self) -> Option<&[ProtocolHandler<'a>]>
The handlers to open protocols.
pub fn scope(&self) -> Option<&str>
Sourcepub fn scope_extensions(&self) -> Option<&[ScopeExtension<'a>]>
pub fn scope_extensions(&self) -> Option<&[ScopeExtension<'a>]>
Sourcepub fn screenshots(&self) -> Option<&[Screenshot<'a>]>
pub fn screenshots(&self) -> Option<&[Screenshot<'a>]>
The screenshots used by chromium.
pub fn short_name(&self) -> Option<&str>
pub fn shortcuts(&self) -> Option<&[Shortcut<'a>]>
pub fn start_url(&self) -> Option<&str>
pub fn theme_color(&self) -> Option<&str>
Trait Implementations§
Source§impl<'a> Clone for WebAppManifest<'a>
impl<'a> Clone for WebAppManifest<'a>
Source§fn clone(&self) -> WebAppManifest<'a>
fn clone(&self) -> WebAppManifest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for WebAppManifest<'a>
impl<'a> Debug for WebAppManifest<'a>
Source§impl<'a> Default for WebAppManifest<'a>
impl<'a> Default for WebAppManifest<'a>
Source§fn default() -> WebAppManifest<'a>
fn default() -> WebAppManifest<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for WebAppManifest<'a>
impl<'de, 'a> Deserialize<'de> for WebAppManifest<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for WebAppManifest<'a>
impl<'a> RefUnwindSafe for WebAppManifest<'a>
impl<'a> Send for WebAppManifest<'a>
impl<'a> Sync for WebAppManifest<'a>
impl<'a> Unpin for WebAppManifest<'a>
impl<'a> UnsafeUnpin for WebAppManifest<'a>
impl<'a> UnwindSafe for WebAppManifest<'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