pub struct Video {
pub avg_color: Option<String>,
pub duration: u32,
pub full_res: Option<String>,
pub height: u32,
pub id: u32,
pub image_url: String,
pub tags: Vec<String>,
pub video_url: String,
pub user: User,
pub video_files: Vec<VideoFile>,
pub video_pictures: Vec<VideoPicture>,
pub width: u32,
}
Expand description
Represents a Pexels video.
Fields§
§avg_color: Option<String>
§duration: u32
§full_res: Option<String>
§height: u32
§id: u32
§image_url: String
§video_url: String
§user: User
§video_files: Vec<VideoFile>
§video_pictures: Vec<VideoPicture>
§width: u32
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 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