pub struct VideoContentBlock {
pub block_type: String,
pub id: Option<String>,
pub file_id: Option<String>,
pub mime_type: Option<String>,
pub index: Option<BlockIndex>,
pub url: Option<String>,
pub base64: Option<String>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Video data content block.
Fields§
§block_type: StringType of the content block. Always “video”.
id: Option<String>Content block identifier.
file_id: Option<String>ID of the video file, e.g., from a file storage system.
mime_type: Option<String>MIME type of the video. Required for base64.
index: Option<BlockIndex>Index of block in aggregate response. Used during streaming.
url: Option<String>URL of the video.
base64: Option<String>Data as a base64 string.
extras: Option<HashMap<String, Value>>Provider-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for VideoContentBlock
impl Clone for VideoContentBlock
Source§fn clone(&self) -> VideoContentBlock
fn clone(&self) -> VideoContentBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoContentBlock
impl Debug for VideoContentBlock
Source§impl Default for VideoContentBlock
impl Default for VideoContentBlock
Source§impl<'de> Deserialize<'de> for VideoContentBlock
impl<'de> Deserialize<'de> for VideoContentBlock
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
Source§impl PartialEq for VideoContentBlock
impl PartialEq for VideoContentBlock
Source§impl Serialize for VideoContentBlock
impl Serialize for VideoContentBlock
impl StructuralPartialEq for VideoContentBlock
Auto Trait Implementations§
impl Freeze for VideoContentBlock
impl RefUnwindSafe for VideoContentBlock
impl Send for VideoContentBlock
impl Sync for VideoContentBlock
impl Unpin for VideoContentBlock
impl UnwindSafe for VideoContentBlock
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