use super::*;
#[derive(Deserialize, Clone, Debug)]
pub struct Link {
pub url: String,
pub title: String,
pub caption: Option<String>,
pub description: Option<String>,
pub photo: Option<photo::Photo>,
pub product: Option<Product>,
pub button: Option<button::Button>,
pub preview_page: Option<String>,
pub preview_url: Option<String>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Product {
pub price: Price,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Price {
pub amount: Integer,
pub currency: Currency,
pub text: String,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Currency {
pub id: Integer,
pub name: String,
}