pub struct SizeOptions {
pub width: Option<u32>,
pub height: Option<u32>,
pub size: Option<u32>,
pub max_size: Option<u32>,
}Expand description
File serving parameters
Fields§
§width: Option<u32>Width of resized image
height: Option<u32>Height of resized image
size: Option<u32>Width and height of resized image
max_size: Option<u32>Maximum resized image side length
Trait Implementations§
Source§impl Clone for SizeOptions
impl Clone for SizeOptions
Source§fn clone(&self) -> SizeOptions
fn clone(&self) -> SizeOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SizeOptions
impl Debug for SizeOptions
Source§impl<'de> Deserialize<'de> for SizeOptions
impl<'de> Deserialize<'de> for SizeOptions
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 Hash for SizeOptions
impl Hash for SizeOptions
Source§impl Ord for SizeOptions
impl Ord for SizeOptions
Source§fn cmp(&self, other: &SizeOptions) -> Ordering
fn cmp(&self, other: &SizeOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SizeOptions
impl PartialEq for SizeOptions
Source§impl PartialOrd for SizeOptions
impl PartialOrd for SizeOptions
Source§impl Serialize for SizeOptions
impl Serialize for SizeOptions
impl Eq for SizeOptions
impl StructuralPartialEq for SizeOptions
Auto Trait Implementations§
impl Freeze for SizeOptions
impl RefUnwindSafe for SizeOptions
impl Send for SizeOptions
impl Sync for SizeOptions
impl Unpin for SizeOptions
impl UnwindSafe for SizeOptions
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