1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! This domain provides commands to trigger the "Find in page" feature.
//!
//! Types, command parameters and event payloads for the `FindInPage`
//! domain. The method-name constants for the same domain are in
//! [`crate::methods`].
//!
//! This domain is experimental and may change without notice.
use serde::{Deserialize, Serialize};
/// Forwards `query` to the find-in-page facility, starting a new find
/// session. Where exactly the search starts from is implementation-specific.
///
/// Parameters of `FindInPage.findFirst`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct FindFirstParams {
pub query: String,
}
impl crate::typed::Command for FindFirstParams {
const METHOD: &'static str = "FindInPage.findFirst";
type Returns = crate::typed::NoReturns;
}
/// Moves to the next match for the query passed to the most recent
/// findFirst() call.
///
/// Parameters of `FindInPage.findNext`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct FindNextParams {}
impl crate::typed::Command for FindNextParams {
const METHOD: &'static str = "FindInPage.findNext";
type Returns = crate::typed::NoReturns;
}
/// Moves to the previous match for the query passed to the most recent
/// findFirst() call.
///
/// Parameters of `FindInPage.findPrev`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct FindPrevParams {}
impl crate::typed::Command for FindPrevParams {
const METHOD: &'static str = "FindInPage.findPrev";
type Returns = crate::typed::NoReturns;
}
/// Ends the current find session, if any, and clears its highlighting.
///
/// Parameters of `FindInPage.stop`.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct StopParams {}
impl crate::typed::Command for StopParams {
const METHOD: &'static str = "FindInPage.stop";
type Returns = crate::typed::NoReturns;
}