pub struct FileTransformConfig {
pub enabled: bool,
pub min_size: u64,
pub min_gain: f64,
pub allow_ext: Vec<String>,
pub max_in_memory_bytes: u64,
pub max_transform_bytes: u64,
pub spill_to_disk: bool,
pub temp_dir: Option<PathBuf>,
pub eval: FileTransformEvalConfig,
pub precomp2: FileTransformPrecomp2Config,
pub precomp2_zstd: FileTransformPrecomp2ZstdConfig,
pub precomp2_lzma: FileTransformPrecomp2LzmaConfig,
}Fields§
§enabled: bool§min_size: u64§min_gain: f64§allow_ext: Vec<String>§max_in_memory_bytes: u64§max_transform_bytes: u64§spill_to_disk: bool§temp_dir: Option<PathBuf>§eval: FileTransformEvalConfig§precomp2: FileTransformPrecomp2Config§precomp2_zstd: FileTransformPrecomp2ZstdConfig§precomp2_lzma: FileTransformPrecomp2LzmaConfigImplementations§
Source§impl FileTransformConfig
impl FileTransformConfig
pub fn resolved_temp_dir(&self, root: &Path) -> Option<PathBuf>
Trait Implementations§
Source§impl Clone for FileTransformConfig
impl Clone for FileTransformConfig
Source§fn clone(&self) -> FileTransformConfig
fn clone(&self) -> FileTransformConfig
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 moreSource§impl Debug for FileTransformConfig
impl Debug for FileTransformConfig
Source§impl Default for FileTransformConfig
impl Default for FileTransformConfig
Source§impl<'de> Deserialize<'de> for FileTransformConfigwhere
FileTransformConfig: Default,
impl<'de> Deserialize<'de> for FileTransformConfigwhere
FileTransformConfig: Default,
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 FileTransformConfig
impl RefUnwindSafe for FileTransformConfig
impl Send for FileTransformConfig
impl Sync for FileTransformConfig
impl Unpin for FileTransformConfig
impl UnsafeUnpin for FileTransformConfig
impl UnwindSafe for FileTransformConfig
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