pub struct DefaultSettingsResponse {
pub resize_filter: ResizeFilter,
pub webp: bool,
pub webp_quality: i32,
pub jpeg_type: JpegType,
pub jpeg_quality: i32,
pub upscale: bool,
pub allow_video: bool,
}
Fields§
§resize_filter: ResizeFilter
The type of filter to use while resizing an image.
webp: 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: 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: 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: i32
The default quality to use with JPEG output. This can be overridden with the "quality" parameter on specific image optimizer requests.
upscale: bool
Whether or not we should allow output images to render at sizes larger than input.
allow_video: bool
Enables GIF to MP4 transformations on this service.
Implementations§
Source§impl DefaultSettingsResponse
impl DefaultSettingsResponse
pub fn new( resize_filter: ResizeFilter, webp: bool, webp_quality: i32, jpeg_type: JpegType, jpeg_quality: i32, upscale: bool, allow_video: bool, ) -> DefaultSettingsResponse
Trait Implementations§
Source§impl Clone for DefaultSettingsResponse
impl Clone for DefaultSettingsResponse
Source§fn clone(&self) -> DefaultSettingsResponse
fn clone(&self) -> DefaultSettingsResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more