pub struct WebpOptions {
pub compression: WebpCompression,
pub quality: f32,
}Expand description
WebP encoding options. WebP encoding parameters.
Default: lossy at quality 90.
Fields§
§compression: WebpCompressionCompression mode: lossy or lossless.
quality: f32Encoding quality (0.0–100.0, clamped). Meaningless for lossless.
Trait Implementations§
Source§impl Clone for WebpOptions
impl Clone for WebpOptions
Source§fn clone(&self) -> WebpOptions
fn clone(&self) -> WebpOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WebpOptions
Source§impl Debug for WebpOptions
impl Debug for WebpOptions
Source§impl Default for WebpOptions
impl Default for WebpOptions
Source§impl From<WebpOptions> for Options
impl From<WebpOptions> for Options
Source§fn from(value: WebpOptions) -> Self
fn from(value: WebpOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WebpOptions
impl PartialEq for WebpOptions
Source§fn eq(&self, other: &WebpOptions) -> bool
fn eq(&self, other: &WebpOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebpOptions
Auto Trait Implementations§
impl Freeze for WebpOptions
impl RefUnwindSafe for WebpOptions
impl Send for WebpOptions
impl Sync for WebpOptions
impl Unpin for WebpOptions
impl UnsafeUnpin for WebpOptions
impl UnwindSafe for WebpOptions
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