pub struct ServiceWorkerVersion {
pub versionId: String,
pub registrationId: RegistrationID,
pub scriptURL: String,
pub runningStatus: ServiceWorkerVersionRunningStatus,
pub status: ServiceWorkerVersionStatus,
pub scriptLastModified: Option<f64>,
pub scriptResponseTime: Option<f64>,
pub controlledClients: Option<Vec<TargetID>>,
pub targetId: Option<TargetID>,
pub routerRules: Option<String>,
}Expand description
ServiceWorker version.
Fields§
§versionId: String§registrationId: RegistrationID§scriptURL: String§runningStatus: ServiceWorkerVersionRunningStatus§status: ServiceWorkerVersionStatus§scriptLastModified: Option<f64>The Last-Modified header value of the main script.
scriptResponseTime: Option<f64>The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.
controlledClients: Option<Vec<TargetID>>§targetId: Option<TargetID>§routerRules: Option<String>Trait Implementations§
Source§impl Clone for ServiceWorkerVersion
impl Clone for ServiceWorkerVersion
Source§fn clone(&self) -> ServiceWorkerVersion
fn clone(&self) -> ServiceWorkerVersion
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 ServiceWorkerVersion
impl Debug for ServiceWorkerVersion
Source§impl Default for ServiceWorkerVersion
impl Default for ServiceWorkerVersion
Source§fn default() -> ServiceWorkerVersion
fn default() -> ServiceWorkerVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceWorkerVersion
impl<'de> Deserialize<'de> for ServiceWorkerVersion
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 ServiceWorkerVersion
impl RefUnwindSafe for ServiceWorkerVersion
impl Send for ServiceWorkerVersion
impl Sync for ServiceWorkerVersion
impl Unpin for ServiceWorkerVersion
impl UnsafeUnpin for ServiceWorkerVersion
impl UnwindSafe for ServiceWorkerVersion
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