BlurMode

Enumin image_optimizerfastly 0.13.1View source
pub enum BlurMode {
Pixels(f64),
Percentage(f64),
}

Applies a Gaussian blur filter to the image.

Variants

Pixels

Specify the radius of the blur in pixels.

0: f64

Percentage

Specify the radius of the blur as a percentage of the image size.

0: f64

Trait implementations

impl Clone for BlurMode

fn clone(&self) -> Self

Parameters

self: &Self

Returns

Self

impl Debug for BlurMode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut $crate::fmt::Formatter

Returns

$crate::fmt::Result

impl Serialize for BlurMode

serialize

View source
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,

Parameters

self: &Self
serializer: S

Returns

Result<S::Ok, S::Error>

Auto trait implementations

Blanket implementations