pub struct AppConfig {Show 22 fields
pub config_version: u32,
pub mode: ProcessMode,
pub custom_max_dim: u32,
pub custom_quality: u8,
pub custom_target_kb: u32,
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 use_custom_quantization: bool,
pub preserve_high_frequency: bool,
pub usage_mode: String,
pub quality_mode: String,
pub platform: String,
pub subsampling: String,
pub preserve_structure: bool,
pub output_suffix: Option<String>,
pub cas_strength: f32,
pub custom_output_dir: Option<String>,
}Fields§
§config_version: u32v4.4.0:配置版本号(用于自动迁移;旧配置缺失=1,当前=2)
mode: ProcessMode§custom_max_dim: u32§custom_quality: u8§custom_target_kb: u32§overwrite: bool§keep_original_name: bool§output_format: OutputFormat§color_space: ColorSpace§enable_sharpening: bool§sharpening_radius: f32§sharpening_amount: f32§use_custom_quantization: bool§preserve_high_frequency: bool§usage_mode: String§quality_mode: String§platform: String§subsampling: String§preserve_structure: bool§output_suffix: Option<String>§cas_strength: f32§custom_output_dir: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().