1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! Module representing cards of statuses.

/// A card of a status.
#[derive(Debug, Clone, Deserialize, PartialEq)]
pub struct Card {
    /// The url associated with the card.
    pub url: String,
    /// The title of the card.
    pub title: String,
    /// The card description.
    pub description: String,
    /// The image associated with the card, if any.
    pub image: Option<String>,
    /// OEmbed data
    author_name: Option<String>,
    /// OEmbed data
    author_url: Option<String>,
    /// OEmbed data
    provider_name: Option<String>,
    /// OEmbed data
    provider_url: Option<String>,
    /// OEmbed data
    html: Option<String>,
    /// OEmbed data
    width: Option<u64>,
    /// OEmbed data
    height: Option<u64>,
}