limit_cli/tools/browser/
types.rs1use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct SnapshotResult {
8 pub content: String,
10 pub title: Option<String>,
12 pub url: Option<String>,
14}
15
16#[derive(Debug, Clone, Serialize, Deserialize)]
18pub struct TabInfo {
19 pub index: usize,
21 pub title: String,
23}
24
25#[derive(Debug, Clone, Serialize, Deserialize)]
27pub struct BoundingBox {
28 pub x: f64,
30 pub y: f64,
32 pub width: f64,
34 pub height: f64,
36}
37
38#[derive(Debug, Clone, Serialize, Deserialize)]
40pub struct Cookie {
41 pub name: String,
43 pub value: String,
45}
46
47#[derive(Debug, Clone, Serialize, Deserialize)]
49pub struct Request {
50 pub method: String,
52 pub url: String,
54}