Skip to main content

VideoData

Struct VideoData 

Source
pub struct VideoData {
Show 47 fields pub aid: u64, pub bvid: String, pub videos: u32, pub tid: u32, pub tid_v2: u32, pub tname: String, pub tname_v2: String, pub copyright: u8, pub pic: String, pub title: String, pub pubdate: u64, pub ctime: u64, pub desc: String, pub desc_v2: Option<Vec<Value>>, pub state: u32, pub duration: u64, pub forward: u64, pub mission_id: Option<u64>, pub redirect_url: String, pub rights: Rights, pub owner: Owner, pub stat: Stat, pub argue_info: ArgueInfo, pub dynamic: String, pub cid: u64, pub dimension: Dimension, pub premiere: Value, pub teenage_mode: u8, pub is_chargeable_season: bool, pub is_story: bool, pub is_upower_exclusive: bool, pub is_upower_play: bool, pub is_upower_preview: bool, pub no_cache: bool, pub pages: Vec<Page>, pub subtitle: Subtitle, pub ugc_season: Option<UgcSeason>, pub staff: Vec<StaffItem>, pub is_season_display: bool, pub user_garb: UserGarb, pub honor_reply: Value, pub like_icon: String, pub need_jump_bv: bool, pub disable_show_up_info: bool, pub is_story_play: u32, pub is_view_self: bool, pub is_upower_exclusive_with_qa: bool,
}
Expand description

video data完整结构体

Fields§

§aid: u64§bvid: String§videos: u32§tid: u32§tid_v2: u32§tname: String§tname_v2: String§copyright: u8§pic: String§title: String§pubdate: u64§ctime: u64§desc: String§desc_v2: Option<Vec<Value>>§state: u32§duration: u64§forward: u64§mission_id: Option<u64>§redirect_url: String§rights: Rights§owner: Owner§stat: Stat§argue_info: ArgueInfo§dynamic: String§cid: u64§dimension: Dimension§premiere: Value§teenage_mode: u8§is_chargeable_season: bool§is_story: bool§is_upower_exclusive: bool§is_upower_play: bool§is_upower_preview: bool§no_cache: bool§pages: Vec<Page>§subtitle: Subtitle§ugc_season: Option<UgcSeason>§staff: Vec<StaffItem>§is_season_display: bool§user_garb: UserGarb§honor_reply: Value§like_icon: String§need_jump_bv: bool§disable_show_up_info: bool§is_story_play: u32§is_view_self: bool§is_upower_exclusive_with_qa: bool

Trait Implementations§

Source§

impl Clone for VideoData

Source§

fn clone(&self) -> VideoData

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VideoData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for VideoData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for VideoData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more