pub struct VideoData {Show 22 fields
pub accept_description: Vec<String>,
pub accept_format: String,
pub accept_quality: Vec<i64>,
pub auto_qn_resp: AutoQnResp,
pub cur_language: String,
pub cur_production_type: i64,
pub dash: Dash,
pub format: String,
pub from: String,
pub high_format: Value,
pub last_play_cid: i64,
pub last_play_time: i64,
pub message: String,
pub play_conf: PlayConf,
pub quality: i64,
pub result: String,
pub seek_param: String,
pub seek_type: String,
pub support_formats: Vec<SupportFormat>,
pub timelength: i64,
pub video_codecid: i64,
pub view_info: Value,
}Fields§
§accept_description: Vec<String>§accept_format: String§accept_quality: Vec<i64>§auto_qn_resp: AutoQnResp§cur_language: String§cur_production_type: i64§dash: Dash§format: String§from: String§high_format: Value§last_play_cid: i64§last_play_time: i64§message: String§play_conf: PlayConf§quality: i64§result: String§seek_param: String§seek_type: String§support_formats: Vec<SupportFormat>§timelength: i64§video_codecid: i64§view_info: ValueImplementations§
Source§impl VideoData
impl VideoData
pub fn best_video_quality_url(&self) -> Option<&str>
pub fn get_specified_video_url( &self, video_quality: Option<VideoQuality>, video_encode: Option<VideoEncode>, ) -> Option<&str>
pub fn best_audio_url(&self) -> Option<&str>
pub fn get_specified_audio_url( &self, audio_quality: AudioQuality, ) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoData
impl<'de> Deserialize<'de> for VideoData
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
impl StructuralPartialEq for VideoData
Auto Trait Implementations§
impl Freeze for VideoData
impl RefUnwindSafe for VideoData
impl Send for VideoData
impl Sync for VideoData
impl Unpin for VideoData
impl UnsafeUnpin for VideoData
impl UnwindSafe for VideoData
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