pub enum VideoAspectRatio {
Ratio(AspectRatio),
Adaptive,
}Expand description
Aspect ratio for video: a fixed ratio or provider-chosen (adaptive).
Variants§
Trait Implementations§
Source§impl Clone for VideoAspectRatio
impl Clone for VideoAspectRatio
Source§fn clone(&self) -> VideoAspectRatio
fn clone(&self) -> VideoAspectRatio
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 VideoAspectRatio
Source§impl Debug for VideoAspectRatio
impl Debug for VideoAspectRatio
Source§impl<'de> Deserialize<'de> for VideoAspectRatio
impl<'de> Deserialize<'de> for VideoAspectRatio
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 VideoAspectRatio
Source§impl Hash for VideoAspectRatio
impl Hash for VideoAspectRatio
Source§impl PartialEq for VideoAspectRatio
impl PartialEq for VideoAspectRatio
Source§impl Serialize for VideoAspectRatio
impl Serialize for VideoAspectRatio
impl StructuralPartialEq for VideoAspectRatio
Auto Trait Implementations§
impl Freeze for VideoAspectRatio
impl RefUnwindSafe for VideoAspectRatio
impl Send for VideoAspectRatio
impl Sync for VideoAspectRatio
impl Unpin for VideoAspectRatio
impl UnsafeUnpin for VideoAspectRatio
impl UnwindSafe for VideoAspectRatio
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.