Struct fastly_api::models::default_settings::DefaultSettings
source · 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§fn eq(&self, other: &DefaultSettings) -> bool
fn eq(&self, other: &DefaultSettings) -> bool
self
and other
values to be equal, and is used
by ==
.