pub struct ProcessingConfig {
pub deskew: Option<bool>,
pub margin_trim: Option<f64>,
pub upscale: Option<bool>,
pub gpu: Option<bool>,
}Expand description
Processing configuration options
Fields§
§deskew: Option<bool>Enable deskew correction
margin_trim: Option<f64>Margin trim percentage
upscale: Option<bool>Enable AI upscaling
gpu: Option<bool>Enable GPU processing
Trait Implementations§
Source§impl Clone for ProcessingConfig
impl Clone for ProcessingConfig
Source§fn clone(&self) -> ProcessingConfig
fn clone(&self) -> ProcessingConfig
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 ProcessingConfig
impl Debug for ProcessingConfig
Source§impl Default for ProcessingConfig
impl Default for ProcessingConfig
Source§fn default() -> ProcessingConfig
fn default() -> ProcessingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProcessingConfig
impl<'de> Deserialize<'de> for ProcessingConfig
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
Source§impl PartialEq for ProcessingConfig
impl PartialEq for ProcessingConfig
Source§impl Serialize for ProcessingConfig
impl Serialize for ProcessingConfig
impl StructuralPartialEq for ProcessingConfig
Auto Trait Implementations§
impl Freeze for ProcessingConfig
impl RefUnwindSafe for ProcessingConfig
impl Send for ProcessingConfig
impl Sync for ProcessingConfig
impl Unpin for ProcessingConfig
impl UnwindSafe for ProcessingConfig
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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().