viewpoint_cdp/protocol/page/
results.rs1use serde::Deserialize;
4
5use super::types::{FrameTree, NavigationEntry};
6
7#[derive(Debug, Clone, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct NavigateResult {
11 pub frame_id: String,
13 pub loader_id: Option<String>,
15 pub error_text: Option<String>,
17}
18
19#[derive(Debug, Clone, Deserialize)]
21#[serde(rename_all = "camelCase")]
22pub struct GetFrameTreeResult {
23 pub frame_tree: FrameTree,
25}
26
27#[derive(Debug, Clone, Deserialize)]
29pub struct CaptureScreenshotResult {
30 pub data: String,
32}
33
34#[derive(Debug, Clone, Deserialize)]
36pub struct PrintToPdfResult {
37 pub data: String,
39 pub stream: Option<String>,
41}
42
43#[derive(Debug, Clone, Deserialize)]
45pub struct NavigationHistoryResult {}
46
47#[derive(Debug, Clone, Deserialize)]
49#[serde(rename_all = "camelCase")]
50pub struct GetNavigationHistoryResult {
51 pub current_index: i32,
53 pub entries: Vec<NavigationEntry>,
55}
56
57#[derive(Debug, Clone, Deserialize)]
59pub struct AddScriptToEvaluateOnNewDocumentResult {
60 pub identifier: String,
62}
63
64#[derive(Debug, Clone, Deserialize)]
66#[serde(rename_all = "camelCase")]
67pub struct CreateIsolatedWorldResult {
68 pub execution_context_id: crate::protocol::runtime::ExecutionContextId,
70}