cdp_driver/protocol/
find_in_page.rs1use serde::{Deserialize, Serialize};
13
14#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
19pub struct FindFirstParams {
20 pub query: String,
21}
22
23impl crate::typed::Command for FindFirstParams {
24 const METHOD: &'static str = "FindInPage.findFirst";
25 type Returns = crate::typed::NoReturns;
26}
27
28#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
33pub struct FindNextParams {}
34
35impl crate::typed::Command for FindNextParams {
36 const METHOD: &'static str = "FindInPage.findNext";
37 type Returns = crate::typed::NoReturns;
38}
39
40#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
45pub struct FindPrevParams {}
46
47impl crate::typed::Command for FindPrevParams {
48 const METHOD: &'static str = "FindInPage.findPrev";
49 type Returns = crate::typed::NoReturns;
50}
51
52#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
56pub struct StopParams {}
57
58impl crate::typed::Command for StopParams {
59 const METHOD: &'static str = "FindInPage.stop";
60 type Returns = crate::typed::NoReturns;
61}