pub struct Response {Show 28 fields
pub url: String,
pub status: JsUInt,
pub status_text: String,
pub headers: Headers,
pub headers_text: Option<String>,
pub mime_type: String,
pub charset: String,
pub request_headers: Option<Headers>,
pub request_headers_text: Option<String>,
pub connection_reused: bool,
pub connection_id: JsFloat,
pub remote_ip_address: Option<String>,
pub remote_port: Option<JsUInt>,
pub from_disk_cache: Option<bool>,
pub from_service_worker: Option<bool>,
pub from_prefetch_cache: Option<bool>,
pub from_early_hints: Option<bool>,
pub service_worker_router_info: Option<ServiceWorkerRouterInfo>,
pub encoded_data_length: JsFloat,
pub timing: Option<ResourceTiming>,
pub service_worker_response_source: Option<ServiceWorkerResponseSource>,
pub response_time: Option<TimeSinceEpoch>,
pub cache_storage_cache_name: Option<String>,
pub protocol: Option<String>,
pub alternate_protocol_usage: Option<AlternateProtocolUsage>,
pub security_state: SecurityState,
pub security_details: Option<SecurityDetails>,
pub is_ip_protection_used: Option<bool>,
}Fields§
§url: String§status: JsUInt§status_text: String§headers: Headers§headers_text: Option<String>§mime_type: String§charset: String§request_headers: Option<Headers>§request_headers_text: Option<String>§connection_reused: bool§connection_id: JsFloat§remote_ip_address: Option<String>§remote_port: Option<JsUInt>§from_disk_cache: Option<bool>§from_service_worker: Option<bool>§from_prefetch_cache: Option<bool>§from_early_hints: Option<bool>§service_worker_router_info: Option<ServiceWorkerRouterInfo>§encoded_data_length: JsFloat§timing: Option<ResourceTiming>§service_worker_response_source: Option<ServiceWorkerResponseSource>§response_time: Option<TimeSinceEpoch>§cache_storage_cache_name: Option<String>§protocol: Option<String>§alternate_protocol_usage: Option<AlternateProtocolUsage>§security_state: SecurityState§security_details: Option<SecurityDetails>§is_ip_protection_used: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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