pub struct ServiceWorkerRouterSource {
pub type: ServiceWorkerRouterSourceType,
pub source_dict: Option<ServiceWorkerRouterSourceDict>,
}Expand description
Corresponds to RouterSource in the spec while the representation is
different as follows.
(https://www.w3.org/TR/service-workers/#typedefdef-routersource) -
RouterSourceEnum: type equals cache, sourceDict is null. -
RouterSourceDict: type equals sourceDict, sourceDict has valid
value.
Fields§
§type: ServiceWorkerRouterSourceType§source_dict: Option<ServiceWorkerRouterSourceDict>Non-empty iff type equals “sourceDict”.
Trait Implementations§
Source§impl Clone for ServiceWorkerRouterSource
impl Clone for ServiceWorkerRouterSource
Source§impl Debug for ServiceWorkerRouterSource
impl Debug for ServiceWorkerRouterSource
Source§impl<'de> Deserialize<'de> for ServiceWorkerRouterSource
impl<'de> Deserialize<'de> for ServiceWorkerRouterSource
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 StructuralPartialEq for ServiceWorkerRouterSource
Auto Trait Implementations§
impl Forget for ServiceWorkerRouterSource
impl Freeze for ServiceWorkerRouterSource
impl RefUnwindSafe for ServiceWorkerRouterSource
impl Send for ServiceWorkerRouterSource
impl Sync for ServiceWorkerRouterSource
impl Unpin for ServiceWorkerRouterSource
impl UnsafeUnpin for ServiceWorkerRouterSource
impl UnwindSafe for ServiceWorkerRouterSource
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