pub struct NormalizedTransformOptions {Show 14 fields
pub width: Option<u32>,
pub height: Option<u32>,
pub fit: Option<Fit>,
pub position: Position,
pub format: MediaType,
pub quality: Option<u8>,
pub background: Option<Rgba8>,
pub rotate: Rotation,
pub auto_orient: bool,
pub metadata_policy: MetadataPolicy,
pub blur: Option<f32>,
pub sharpen: Option<f32>,
pub crop: Option<CropRegion>,
pub deadline: Option<Duration>,
}Expand description
Fully normalized transform options ready for a backend pipeline.
Fields§
§width: Option<u32>The desired output width in pixels.
height: Option<u32>The desired output height in pixels.
fit: Option<Fit>The normalized resize fit mode.
position: PositionThe normalized positioning mode.
format: MediaTypeThe resolved output format.
quality: Option<u8>The requested lossy quality.
background: Option<Rgba8>The requested background color.
rotate: RotationThe requested extra rotation.
auto_orient: boolWhether EXIF-based auto-orientation should run.
metadata_policy: MetadataPolicyThe normalized metadata handling strategy.
blur: Option<f32>Gaussian blur sigma, when requested.
sharpen: Option<f32>Unsharp-mask (sharpen) sigma, when requested.
crop: Option<CropRegion>Optional explicit crop region applied before resize.
deadline: Option<Duration>Optional wall-clock deadline for the transform pipeline.
Trait Implementations§
Source§impl Clone for NormalizedTransformOptions
impl Clone for NormalizedTransformOptions
Source§fn clone(&self) -> NormalizedTransformOptions
fn clone(&self) -> NormalizedTransformOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedTransformOptions
impl Debug for NormalizedTransformOptions
impl StructuralPartialEq for NormalizedTransformOptions
Auto Trait Implementations§
impl Freeze for NormalizedTransformOptions
impl RefUnwindSafe for NormalizedTransformOptions
impl Send for NormalizedTransformOptions
impl Sync for NormalizedTransformOptions
impl Unpin for NormalizedTransformOptions
impl UnsafeUnpin for NormalizedTransformOptions
impl UnwindSafe for NormalizedTransformOptions
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more