pub struct MediaSize {
pub w: i32,
pub h: i32,
pub resize: ResizeMode,
}Expand description
Represents the dimensions of a media file.
Fields§
§w: i32The size variant’s width in pixels.
h: i32The size variant’s height in pixels.
resize: ResizeModeThe method used to obtain the given dimensions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaSize
impl<'de> Deserialize<'de> for MediaSize
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 Copy for MediaSize
Auto Trait Implementations§
impl Freeze for MediaSize
impl RefUnwindSafe for MediaSize
impl Send for MediaSize
impl Sync for MediaSize
impl Unpin for MediaSize
impl UnwindSafe for MediaSize
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