pub enum VideoData {
Url {
url: String,
media_type: String,
},
Base64 {
data: String,
media_type: String,
},
Binary {
data: Bytes,
media_type: String,
},
}Expand description
One video returned by the provider.
Mirrors VideoModelV4VideoData (tagged union over URL / base64 / binary).
Variants§
Url
Video available at a URL (most common for video providers).
Fields
Base64
Video as a base64-encoded string.
Binary
Video as raw binary bytes.
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