ytextract 0.10.6

A library for getting YouTube metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use reqwest::Url;

/// A Thumbnail.
#[serde_with::serde_as]
#[derive(Debug, serde::Deserialize, Clone, PartialEq, Eq)]
pub struct Thumbnail {
    /// The [`Url`] where the [`Thumbnail`] can be found.
    #[serde_as(as = "serde_with::DisplayFromStr")]
    pub url: Url,

    /// The width of the [`Thumbnail`]
    pub width: u64,

    /// The height of the [`Thumbnail`]
    pub height: u64,
}