pub struct DownloadPreset {
pub video_bit_rate: u64,
pub max_height: u32,
pub audio_bit_rate: u64,
}Expand description
Transcode caps for one named preset.
Fields§
§video_bit_rate: u64Video target, bits per second.
max_height: u32Longest edge the picture is scaled down to.
audio_bit_rate: u64Audio target, bits per second.
Implementations§
Source§impl DownloadPreset
impl DownloadPreset
Sourcepub fn total_bit_rate(&self) -> u64
pub fn total_bit_rate(&self) -> u64
Combined stream rate, bits per second.
Trait Implementations§
Source§impl Clone for DownloadPreset
impl Clone for DownloadPreset
Source§fn clone(&self) -> DownloadPreset
fn clone(&self) -> DownloadPreset
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 DownloadPreset
impl Debug for DownloadPreset
Source§impl PartialEq for DownloadPreset
impl PartialEq for DownloadPreset
Source§fn eq(&self, other: &DownloadPreset) -> bool
fn eq(&self, other: &DownloadPreset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DownloadPreset
impl Eq for DownloadPreset
impl StructuralPartialEq for DownloadPreset
Auto Trait Implementations§
impl Freeze for DownloadPreset
impl RefUnwindSafe for DownloadPreset
impl Send for DownloadPreset
impl Sync for DownloadPreset
impl Unpin for DownloadPreset
impl UnsafeUnpin for DownloadPreset
impl UnwindSafe for DownloadPreset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more