mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//! Module representing cards of statuses.
|
|
|
|
|
|
|
|
/// A card of a status.
|
|
|
|
#[derive(Debug, Clone, Deserialize)]
|
|
|
|
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<String>,
|
|
|
|
/// OEmbed data
|
|
|
|
height: Option<String>,
|
|
|
|
}
|