pub struct ImageTransformOptions {
    pub width: Option<u32>,
    pub height: Option<u32>,
    pub resize: Option<String>,
    pub format: Option<String>,
    pub quality: Option<u32>,
}Expand description
画像変換オプション
Fields§
§width: Option<u32>§height: Option<u32>§resize: Option<String>§format: Option<String>§quality: Option<u32>Implementations§
Source§impl ImageTransformOptions
 
impl ImageTransformOptions
Sourcepub fn with_width(self, width: u32) -> Self
 
pub fn with_width(self, width: u32) -> Self
幅を設定
Sourcepub fn with_height(self, height: u32) -> Self
 
pub fn with_height(self, height: u32) -> Self
高さを設定
Sourcepub fn with_resize(self, resize: &str) -> Self
 
pub fn with_resize(self, resize: &str) -> Self
リサイズモードを設定 (cover, contain, fill)
Sourcepub fn with_format(self, format: &str) -> Self
 
pub fn with_format(self, format: &str) -> Self
出力フォーマットを設定 (webp, png, jpeg, etc)
Sourcepub fn with_quality(self, quality: u32) -> Self
 
pub fn with_quality(self, quality: u32) -> Self
画質を設定 (1-100)
Trait Implementations§
Source§impl Clone for ImageTransformOptions
 
impl Clone for ImageTransformOptions
Source§fn clone(&self) -> ImageTransformOptions
 
fn clone(&self) -> ImageTransformOptions
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 ImageTransformOptions
 
impl Debug for ImageTransformOptions
Source§impl Default for ImageTransformOptions
 
impl Default for ImageTransformOptions
Source§fn default() -> ImageTransformOptions
 
fn default() -> ImageTransformOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImageTransformOptions
impl RefUnwindSafe for ImageTransformOptions
impl Send for ImageTransformOptions
impl Sync for ImageTransformOptions
impl Unpin for ImageTransformOptions
impl UnwindSafe for ImageTransformOptions
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