data_for_seo/entity/serp/element/multi_carousel.rs
1use crate::entity::{SerpApiElementMultiCarouselElement, SerpApiRectangle};
2use serde::{Deserialize, Serialize};
3
4/// MultiCarousel
5#[derive(Debug, Serialize, Deserialize, Clone)]
6pub struct SerpApiElementMultiCarousel {
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 /// Parsed elements of the result.
16 pub items: Option<Vec<SerpApiElementMultiCarouselElement>>,
17 /// Pixel bounding box of the element (when `calculate_rectangles` is set).
18 pub rectangle: Option<SerpApiRectangle>,
19}