pub struct Video {Show 19 fields
pub type: String,
pub id: u64,
pub author: String,
pub mid: u64,
pub typeid: String,
pub typename: String,
pub arcurl: String,
pub aid: u64,
pub bvid: String,
pub title: String,
pub pic: String,
pub play: u64,
pub danmaku: u64,
pub favorites: u64,
pub like: u64,
pub tag: String,
pub review: u64,
pub pubdate: u64,
pub duration: String,
}Expand description
视频信息结构体
Fields§
§type: String视频类型
id: u64视频ID 也就是aid
作者昵称
mid: u64作者mid
typeid: String视频分区ID
typename: String视频分区名称
arcurl: String视频链接
aid: u64视频aid
bvid: String视频bvid
title: String视频标题
pic: String封面图
play: u64播放量
danmaku: u64弹幕数量
favorites: u64收藏数量
like: u64点赞数量
tag: String视频标签
review: u64评论数
pubdate: u64发布时间 (时间戳)
duration: String视频时长 (格式: mm:ss)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Video
impl<'de> Deserialize<'de> for Video
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Video
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnsafeUnpin for Video
impl UnwindSafe for Video
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more