Sides

Structin image_optimizerfastly 0.13.1View source
pub struct Sides {
pub right: PixelsOrPercentage,
pub bottom: PixelsOrPercentage,
pub left: PixelsOrPercentage,
}

Parameters for adding or removing pixels from the sides of an image.

Fields

Difference for the top of the image.

Difference for the right of the image.

Difference for the bottom of the image.

Difference for the left of the image.

Trait implementations

impl Clone for Sides

fn clone(&self) -> Self

Parameters

self: &Self

Returns

Self

impl Debug for Sides

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

Parameters

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

Returns

$crate::fmt::Result

impl Serialize for Sides

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