boosty_api 0.27.0

API client for interacting with Boosty platform
Documentation
use serde::Deserialize;

/// Currency price info.
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct CurrencyPrices {
    /// Price in Euro.
    #[serde(alias = "EUR", default)]
    pub eur: f32,
    /// Price in Russian Rubles.
    #[serde(alias = "RUB")]
    pub rub: f32,
    /// Price in US Dollars.
    #[serde(alias = "USD")]
    pub usd: f32,
}

/// Counter for a specific content type inside a bundle.
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct ContentCounter {
    /// Content type name (e.g., "video", "text", "image").
    #[serde(rename = "type")]
    pub type_: String,
    /// Count of items.
    pub count: u32,
    /// Total size in bytes.
    pub size: u64,
}

/// Thumbnail image data.
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct Thumbnail {
    /// Unique image identifier.
    pub id: String,
    /// Image title.
    pub title: String,
    /// URL to the image.
    pub url: String,
    /// Image rendition type.
    pub rendition: String,
    /// Image type (e.g., "image").
    #[serde(rename = "type")]
    pub type_: String,
    /// Width in pixels.
    pub width: u32,
    /// Height in pixels.
    pub height: u32,
    /// File size in bytes.
    pub size: u64,
}