data_for_seo/entity/serp/element/answer_box.rs
1use crate::entity::{SerpApiElementLinkElement, SerpApiRectangle};
2use serde::{Deserialize, Serialize};
3
4/// AnswerBox
5#[derive(Debug, Serialize, Deserialize, Clone)]
6pub struct SerpApiElementAnswerBox {
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 /// Text content.
16 pub text: Option<String>,
17 /// Links associated with the result.
18 pub links: Option<Vec<SerpApiElementLinkElement>>,
19 /// Pixel bounding box of the element (when `calculate_rectangles` is set).
20 pub rectangle: Option<SerpApiRectangle>,
21}