megamind/models/
webpage.rs1#[cfg(feature = "catchall")]
5use std::collections::HashMap;
6
7use serde::{Deserialize, Serialize};
8
9#[cfg(feature = "catchall")]
10use serde_json::Value;
11
12#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
14pub struct WebPageResponse {
15 pub web_page: WebPage,
17}
18
19#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
21pub struct WebPage {
22 pub api_path: Option<String>,
24 pub domain: String,
26 pub id: Option<u32>,
28 pub normalized_url: String,
30 pub share_url: String,
32 pub title: String,
34 pub url: String,
36 pub annotation_count: u32,
38 #[cfg(feature = "catchall")]
40 #[serde(flatten)]
41 pub extra: HashMap<String, Value>,
42}