pub struct ProcessConfig {Show 18 fields
pub mode: ProcessMode,
pub max_dim: u32,
pub quality: u8,
pub target_kb: u32,
pub output_dir: Option<PathBuf>,
pub overwrite: bool,
pub keep_original_name: bool,
pub output_format: OutputFormat,
pub color_space: ColorSpace,
pub enable_sharpening: bool,
pub sharpening_radius: f32,
pub sharpening_amount: f32,
pub perceptual: Option<PerceptualOptions>,
pub subsampling: String,
pub preserve_structure: bool,
pub structure_base: Option<PathBuf>,
pub output_suffix: Option<String>,
pub cas_strength: f32,
}Fields§
§mode: ProcessMode§max_dim: u32§quality: u8§target_kb: u32§output_dir: Option<PathBuf>§overwrite: bool§keep_original_name: bool§output_format: OutputFormat§color_space: ColorSpace§enable_sharpening: bool§sharpening_radius: f32§sharpening_amount: f32§perceptual: Option<PerceptualOptions>v4.2.0-exp 感知压缩选项:None = 完全走 v4.1.0 旧路径(GUI 恒为 None)
subsampling: String§preserve_structure: bool§structure_base: Option<PathBuf>§output_suffix: Option<String>§cas_strength: f32Trait Implementations§
Source§impl Clone for ProcessConfig
impl Clone for ProcessConfig
Auto Trait Implementations§
impl Freeze for ProcessConfig
impl RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl UnsafeUnpin for ProcessConfig
impl UnwindSafe for ProcessConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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