pub struct VideoFile {
pub url: String,
pub width: u32,
pub height: u32,
pub size: u64,
pub thumbnail: String,
}Expand description
单个视频文件信息
包含视频文件的具体信息,包括 URL、分辨率、文件大小和预览图。
Fields§
§url: String视频文件 URL
width: u32视频宽度
height: u32视频高度
size: u64文件大小(字节)
thumbnail: String视频预览图
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoFile
impl<'de> Deserialize<'de> for VideoFile
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 VideoFile
impl RefUnwindSafe for VideoFile
impl Send for VideoFile
impl Sync for VideoFile
impl Unpin for VideoFile
impl UnwindSafe for VideoFile
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