pub struct WebAppManifest {Show 23 fields
pub backgroundColor: Option<String>,
pub description: Option<String>,
pub dir: Option<String>,
pub display: Option<String>,
pub displayOverrides: Option<Vec<String>>,
pub fileHandlers: Option<Vec<FileHandler>>,
pub icons: Option<Vec<ImageResource>>,
pub id: Option<String>,
pub lang: Option<String>,
pub launchHandler: Option<LaunchHandler>,
pub name: Option<String>,
pub orientation: Option<String>,
pub preferRelatedApplications: Option<bool>,
pub protocolHandlers: Option<Vec<ProtocolHandler>>,
pub relatedApplications: Option<Vec<RelatedApplication>>,
pub scope: Option<String>,
pub scopeExtensions: Option<Vec<ScopeExtension>>,
pub screenshots: Option<Vec<Screenshot>>,
pub shareTarget: Option<ShareTarget>,
pub shortName: Option<String>,
pub shortcuts: Option<Vec<Shortcut>>,
pub startUrl: Option<String>,
pub themeColor: Option<String>,
}Fields§
§backgroundColor: Option<String>§description: Option<String>The extra description provided by the manifest.
dir: Option<String>§display: Option<String>§displayOverrides: Option<Vec<String>>The overrided display mode controlled by the user.
fileHandlers: Option<Vec<FileHandler>>The handlers to open files.
icons: Option<Vec<ImageResource>>§id: Option<String>§lang: Option<String>§launchHandler: Option<LaunchHandler>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
name: Option<String>§orientation: Option<String>§preferRelatedApplications: Option<bool>§protocolHandlers: Option<Vec<ProtocolHandler>>The handlers to open protocols.
scope: Option<String>§scopeExtensions: Option<Vec<ScopeExtension>>Non-standard, see https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
screenshots: Option<Vec<Screenshot>>The screenshots used by chromium.
shortName: Option<String>§shortcuts: Option<Vec<Shortcut>>§startUrl: Option<String>§themeColor: Option<String>Trait Implementations§
Source§impl Clone for WebAppManifest
impl Clone for WebAppManifest
Source§fn clone(&self) -> WebAppManifest
fn clone(&self) -> WebAppManifest
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 moreSource§impl Debug for WebAppManifest
impl Debug for WebAppManifest
Source§impl Default for WebAppManifest
impl Default for WebAppManifest
Source§fn default() -> WebAppManifest
fn default() -> WebAppManifest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebAppManifest
impl<'de> Deserialize<'de> for WebAppManifest
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 Freeze for WebAppManifest
impl RefUnwindSafe for WebAppManifest
impl Send for WebAppManifest
impl Sync for WebAppManifest
impl Unpin for WebAppManifest
impl UnsafeUnpin for WebAppManifest
impl UnwindSafe for WebAppManifest
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