use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct PreciousVideoData {
pub title: String,
pub media_id: u64,
pub explain: String,
pub list: Vec<serde_json::Value>, }
#[cfg(test)]
mod tests {
use crate::BpiClient;
use tracing::info;
#[ignore = "legacy live API test; requires explicit BPI_LIVE_TEST review"]
#[tokio::test]
async fn test_video_popular_precious() {
let bpi = BpiClient::new().expect("client should build");
let resp = bpi.video_ranking().popular_precious().await;
info!("{:?}", resp);
assert!(resp.is_ok());
let data = resp.unwrap();
info!("total lists: {}", data.list.len());
info!("first list item: {:?}", data.list.first());
}
}