deviantart/types/
oembed.rs

1use std::collections::HashMap;
2use url::Url;
3
4/// DeviantArt OEmbed
5#[derive(Debug, serde::Deserialize)]
6pub struct OEmbed {
7    /// Url of the asset
8    pub url: Url,
9
10    /// Url of the thumbnail
11    pub thumbnail_url: Option<Url>,
12
13    /// Title
14    pub title: String,
15
16    /// Unknown K/Vs
17    #[serde(flatten)]
18    pub unknown: HashMap<String, serde_json::Value>,
19}