pub enum VideoQuality {
Best,
High,
Medium,
Low,
Worst,
CustomHeight(u32),
CustomWidth(u32),
}Expand description
Represents video quality preferences for format selection.
Variantsยง
Best
Best available video quality (highest resolution, fps, and bitrate)
High
High quality video (1080p or better if available)
Medium
Medium quality video (720p if available)
Low
Low quality video (480p or lower)
Worst
Worst available video quality (lowest resolution, fps, and bitrate)
CustomHeight(u32)
Custom resolution with preference for specified height
CustomWidth(u32)
Custom resolution with preference for specified width
Trait Implementationsยง
Sourceยงimpl Clone for VideoQuality
impl Clone for VideoQuality
Sourceยงfn clone(&self) -> VideoQuality
fn clone(&self) -> VideoQuality
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 moreimpl Copy for VideoQuality
Sourceยงimpl Debug for VideoQuality
impl Debug for VideoQuality
Sourceยงimpl Default for VideoQuality
impl Default for VideoQuality
Sourceยงfn default() -> VideoQuality
fn default() -> VideoQuality
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for VideoQuality
impl<'de> Deserialize<'de> for VideoQuality
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 Display for VideoQuality
impl Display for VideoQuality
impl Eq for VideoQuality
Sourceยงimpl Hash for VideoQuality
impl Hash for VideoQuality
Sourceยงimpl PartialEq for VideoQuality
impl PartialEq for VideoQuality
Sourceยงimpl Serialize for VideoQuality
impl Serialize for VideoQuality
impl StructuralPartialEq for VideoQuality
Auto Trait Implementationsยง
impl Freeze for VideoQuality
impl RefUnwindSafe for VideoQuality
impl Send for VideoQuality
impl Sync for VideoQuality
impl Unpin for VideoQuality
impl UnsafeUnpin for VideoQuality
impl UnwindSafe for VideoQuality
Blanket Implementationsยง
impl<T> AllTraits for T
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.