pub struct FormatPreferences {
pub video_quality: Option<VideoQuality>,
pub audio_quality: Option<AudioQuality>,
pub video_codec: Option<VideoCodecPreference>,
pub audio_codec: Option<AudioCodecPreference>,
}Expand description
Bundles video/audio quality and codec preferences for format cache lookups.
Used to pass download preferences through cache layers without repeating
four separate Option parameters everywhere.
Fieldsยง
ยงvideo_quality: Option<VideoQuality>Preferred video quality.
audio_quality: Option<AudioQuality>Preferred audio quality.
video_codec: Option<VideoCodecPreference>Preferred video codec.
audio_codec: Option<AudioCodecPreference>Preferred audio codec.
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Clone for FormatPreferences
impl Clone for FormatPreferences
Sourceยงfn clone(&self) -> FormatPreferences
fn clone(&self) -> FormatPreferences
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 FormatPreferences
impl Debug for FormatPreferences
Sourceยงimpl Default for FormatPreferences
impl Default for FormatPreferences
Sourceยงfn default() -> FormatPreferences
fn default() -> FormatPreferences
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl Display for FormatPreferences
impl Display for FormatPreferences
impl Eq for FormatPreferences
Sourceยงimpl PartialEq for FormatPreferences
impl PartialEq for FormatPreferences
impl StructuralPartialEq for FormatPreferences
Auto Trait Implementationsยง
impl Freeze for FormatPreferences
impl RefUnwindSafe for FormatPreferences
impl Send for FormatPreferences
impl Sync for FormatPreferences
impl Unpin for FormatPreferences
impl UnsafeUnpin for FormatPreferences
impl UnwindSafe for FormatPreferences
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<T> CommonTraits for T
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.Sourceยงimpl<T> DowncastSend for T
impl<T> DowncastSend for T
Sourceยงimpl<T> DowncastSync for T
impl<T> DowncastSync for T
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.