#[non_exhaustive]pub struct ApiMediaMetadata {
pub bitrate_bps: u64,
pub duration_s: f64,
pub creation_time: String,
pub streams: Option<Vec<ApiMediaStream>>,
}Available on crate features
dbx_riviera and sync_routes only.Expand description
Audio/video container and per-stream metadata. Mirrors the useful subset of the internal
riviera.MediaMetadata message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bitrate_bps: u64§duration_s: f64§creation_time: StringContainer-level creation time, when present.
streams: Option<Vec<ApiMediaStream>>Implementations§
Source§impl ApiMediaMetadata
impl ApiMediaMetadata
pub fn with_bitrate_bps(self, value: u64) -> Self
pub fn with_duration_s(self, value: f64) -> Self
pub fn with_creation_time(self, value: String) -> Self
pub fn with_streams(self, value: Vec<ApiMediaStream>) -> Self
Trait Implementations§
Source§impl Clone for ApiMediaMetadata
impl Clone for ApiMediaMetadata
Source§fn clone(&self) -> ApiMediaMetadata
fn clone(&self) -> ApiMediaMetadata
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 ApiMediaMetadata
impl Debug for ApiMediaMetadata
Source§impl Default for ApiMediaMetadata
impl Default for ApiMediaMetadata
Source§fn default() -> ApiMediaMetadata
fn default() -> ApiMediaMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiMediaMetadata
impl<'de> Deserialize<'de> for ApiMediaMetadata
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ApiMediaMetadata
impl PartialEq for ApiMediaMetadata
Source§impl Serialize for ApiMediaMetadata
impl Serialize for ApiMediaMetadata
impl StructuralPartialEq for ApiMediaMetadata
Auto Trait Implementations§
impl Freeze for ApiMediaMetadata
impl RefUnwindSafe for ApiMediaMetadata
impl Send for ApiMediaMetadata
impl Sync for ApiMediaMetadata
impl Unpin for ApiMediaMetadata
impl UnsafeUnpin for ApiMediaMetadata
impl UnwindSafe for ApiMediaMetadata
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