pub struct DefaultSettings {
pub resize_filter: Option<ResizeFilter>,
pub webp: Option<bool>,
pub webp_quality: Option<i32>,
pub jpeg_type: Option<JpegType>,
pub jpeg_quality: Option<i32>,
pub upscale: Option<bool>,
pub allow_video: Option<bool>,
}Fields§
§resize_filter: Option<ResizeFilter>The type of filter to use while resizing an image.
webp: Option<bool>Controls whether or not to default to WebP output when the client supports it. This is equivalent to adding "auto=webp" to all image optimizer requests.
webp_quality: Option<i32>The default quality to use with WebP output. This can be overridden with the second option in the "quality" URL parameter on specific image optimizer requests.
jpeg_type: Option<JpegType>The default type of JPEG output to use. This can be overridden with "format=bjpeg" and "format=pjpeg" on specific image optimizer requests.
jpeg_quality: Option<i32>The default quality to use with JPEG output. This can be overridden with the "quality" parameter on specific image optimizer requests.
upscale: Option<bool>Whether or not we should allow output images to render at sizes larger than input.
allow_video: Option<bool>Enables GIF to MP4 transformations on this service.
Implementations§
source§impl DefaultSettings
impl DefaultSettings
pub fn new() -> DefaultSettings
Trait Implementations§
source§impl Clone for DefaultSettings
impl Clone for DefaultSettings
source§fn clone(&self) -> DefaultSettings
fn clone(&self) -> DefaultSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DefaultSettings
impl Debug for DefaultSettings
source§impl Default for DefaultSettings
impl Default for DefaultSettings
source§fn default() -> DefaultSettings
fn default() -> DefaultSettings
source§impl<'de> Deserialize<'de> for DefaultSettings
impl<'de> Deserialize<'de> for DefaultSettings
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>,
source§impl PartialEq for DefaultSettings
impl PartialEq for DefaultSettings
source§impl Serialize for DefaultSettings
impl Serialize for DefaultSettings
impl StructuralPartialEq for DefaultSettings
Auto Trait Implementations§
impl Freeze for DefaultSettings
impl RefUnwindSafe for DefaultSettings
impl Send for DefaultSettings
impl Sync for DefaultSettings
impl Unpin for DefaultSettings
impl UnwindSafe for DefaultSettings
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)