mastodon_async_entities/card.rs
1//! Module representing cards of statuses.
2
3use serde::{Deserialize, Serialize};
4
5/// A card of a status.
6#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq)]
7pub struct Card {
8 /// The url associated with the card.
9 pub url: String,
10 /// The title of the card.
11 pub title: String,
12 /// The card description.
13 pub description: String,
14 /// The image associated with the card, if any.
15 pub image: Option<String>,
16 /// OEmbed data
17 author_name: Option<String>,
18 /// OEmbed data
19 author_url: Option<String>,
20 /// OEmbed data
21 provider_name: Option<String>,
22 /// OEmbed data
23 provider_url: Option<String>,
24 /// OEmbed data
25 html: Option<String>,
26 /// OEmbed data
27 width: Option<u64>,
28 /// OEmbed data
29 height: Option<u64>,
30}