rustube/video_info/
mod.rs

1//! All the types, that hold video information.
2
3use serde::{Deserialize, Serialize};
4use serde_with::{json::JsonString, serde_as};
5
6use player_response::PlayerResponse;
7
8pub mod player_response;
9
10#[serde_as]
11#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
12pub struct VideoInfo {
13    #[serde_as(deserialize_as = "JsonString")]
14    pub player_response: PlayerResponse,
15    #[serde(rename = "adaptive_fmts")]
16    pub adaptive_fmts_raw: Option<String>,
17
18    #[serde(skip)]
19    pub is_age_restricted: bool,
20}