data_for_seo/entity/serp/element/local_pack.rs
1use crate::entity::{SerpApiRating, SerpApiRectangle};
2use serde::{Deserialize, Serialize};
3
4/// LocalPack
5#[derive(Debug, Serialize, Deserialize, Clone)]
6pub struct SerpApiElementLocalPack {
7 /// Rank of the element among elements of the same type.
8 pub rank_group: Option<i64>,
9 /// Absolute rank of the element across the whole SERP.
10 pub rank_absolute: Option<i64>,
11 /// Alignment of the element within the SERP, `left` or `right`.
12 pub position: Option<String>,
13 /// XPath of the element within the page.
14 pub xpath: Option<String>,
15 /// Title of the result.
16 pub title: Option<String>,
17 /// Snippet / description text of the result.
18 pub description: Option<String>,
19 /// Domain of the result.
20 pub domain: Option<String>,
21 /// Phone number of the entity.
22 pub phone: Option<String>,
23 /// URL of the result.
24 pub url: Option<String>,
25 /// URL to make a booking or reservation.
26 pub booking_url: Option<String>,
27 /// `true` if the result is a paid placement.
28 pub is_paid: Option<String>,
29 /// Aggregate rating shown for the result.
30 pub rating: Option<SerpApiRating>,
31 /// Google CID identifier of the entity.
32 pub cid: Option<String>,
33 /// Pixel bounding box of the element (when `calculate_rectangles` is set).
34 pub rectangle: Option<SerpApiRectangle>,
35}