#![cfg(feature = "cdp-backend")]
use bytes::Bytes;
use url::Url;
#[derive(Default)]
pub struct RenderState {
pub final_url: Option<Url>,
pub status: Option<u16>,
pub html_post_js: Option<String>,
pub screenshot_png: Option<Bytes>,
pub runtime_routes: Vec<Url>,
pub network_endpoints: Vec<Url>,
pub vitals: crate::metrics::WebVitals,
pub resources: Vec<crate::metrics::ResourceSample>,
pub challenge: Option<crate::antibot::ChallengeSignal>,
pub manifest_url: Option<Url>,
pub service_worker_urls: Vec<Url>,
pub indexeddb_inventory: Option<serde_json::Value>,
pub cache_storage_inventory: Option<serde_json::Value>,
pub scratch: serde_json::Map<String, serde_json::Value>,
}
impl RenderState {
pub fn navigated(&self) -> bool {
self.final_url.is_some()
}
}