Struct biliapi::requests::VideoInfo [−][src]
pub struct VideoInfo { pub bvid: String, pub aid: u64, pub videos: usize, pub title: String, pub publish_at: DateTime<Utc>, pub create_at: DateTime<Utc>, pub desc: String, pub duration: Duration, pub cover_url: String, pub stat: VideoStat, }
Expand description
一个 BV 视频的信息
从 https://api.bilibili.com/x/web-interface/view?bvid={bv}
获取
Fields
bvid: String
aid: u64
videos: usize
稿件分P总数
title: String
publish_at: DateTime<Utc>
稿件发布时间
create_at: DateTime<Utc>
用户投稿时间
desc: String
duration: Duration
稿件总时长(所有分P)
cover_url: String
视频封面 url
stat: VideoStat
Trait Implementations
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 RefUnwindSafe for VideoInfo
impl UnwindSafe for VideoInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
type Output = T
type Output = T
Should always be Self