pub struct IconRef {
pub src: String,
pub sizes: String,
pub purpose: String,
}Expand description
An icon reference for the PWA manifest / home-screen install.
Fields§
§src: StringIcon source path (relative to scope), e.g. "./icons/icon-192.png".
sizes: StringSpace-separated size list, e.g. "192x192" or "any".
purpose: String"any" or "maskable" (may be a space-separated combination).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IconRef
impl<'de> Deserialize<'de> for IconRef
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
impl Eq for IconRef
impl StructuralPartialEq for IconRef
Auto Trait Implementations§
impl Freeze for IconRef
impl RefUnwindSafe for IconRef
impl Send for IconRef
impl Sync for IconRef
impl Unpin for IconRef
impl UnsafeUnpin for IconRef
impl UnwindSafe for IconRef
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