pub enum VideoSource {
Bytes(Vec<u8>),
Uri(String),
}Expand description
The source of a video content block.
Variants§
Bytes(Vec<u8>)
Raw video bytes (Bedrock parity) — base64-encoded into a data URL on the wire.
Uri(String)
An audacity://files/… URI from the file-upload flow (spec §6), passed
through verbatim — mirrors Bedrock’s bytes | s3Location pattern.
Trait Implementations§
Source§impl Clone for VideoSource
impl Clone for VideoSource
Source§fn clone(&self) -> VideoSource
fn clone(&self) -> VideoSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VideoSource
impl Debug for VideoSource
Source§impl<'de> Deserialize<'de> for VideoSource
impl<'de> Deserialize<'de> for VideoSource
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 Eq for VideoSource
Source§impl PartialEq for VideoSource
impl PartialEq for VideoSource
Source§fn eq(&self, other: &VideoSource) -> bool
fn eq(&self, other: &VideoSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VideoSource
impl Serialize for VideoSource
impl StructuralPartialEq for VideoSource
Auto Trait Implementations§
impl Freeze for VideoSource
impl RefUnwindSafe for VideoSource
impl Send for VideoSource
impl Sync for VideoSource
impl Unpin for VideoSource
impl UnsafeUnpin for VideoSource
impl UnwindSafe for VideoSource
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