Struct reddit_tube::types::get_video_response::VideoData
source · pub struct VideoData {Show 13 fields
pub author: String,
pub duration: u64,
pub has_audio: bool,
pub is_gif: bool,
pub is_video: bool,
pub kind: Box<str>,
pub nsfw: bool,
pub provider_name: Option<Box<str>>,
pub subreddit: Box<str>,
pub thumbnail: Url,
pub title: Box<str>,
pub url: Url,
pub extra: HashMap<String, Value>,
}
Expand description
Video Data
Fields§
Author
duration: u64
Video duration
has_audio: bool
Whether the post has audio
is_gif: bool
Whether the post is a gif
is_video: bool
Whether the post is a video
kind: Box<str>
The post type?
nsfw: bool
Whether the post is nsfw
provider_name: Option<Box<str>>
?
subreddit: Box<str>
The subreddit
thumbnail: Url
The thumbnail url
title: Box<str>
The post title
url: Url
The post url?
extra: HashMap<String, Value>
Unknown data
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
Auto Trait Implementations§
impl RefUnwindSafe for VideoData
impl Send for VideoData
impl Sync for VideoData
impl Unpin 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