#[non_exhaustive]pub struct PremiumFeatures {
pub enable_selection_mark_detection: bool,
pub compute_style_info: bool,
pub enable_math_ocr: bool,
/* private fields */
}Expand description
Configurations for premium OCR features.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_selection_mark_detection: boolTurn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.
compute_style_info: boolTurn on font identification model and return font style information.
enable_math_ocr: boolTurn on the model that can extract LaTeX math formulas.
Implementations§
Source§impl PremiumFeatures
impl PremiumFeatures
pub fn new() -> Self
Sourcepub fn set_enable_selection_mark_detection<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_selection_mark_detection<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_selection_mark_detection.
§Example
ⓘ
let x = PremiumFeatures::new().set_enable_selection_mark_detection(true);Sourcepub fn set_compute_style_info<T: Into<bool>>(self, v: T) -> Self
pub fn set_compute_style_info<T: Into<bool>>(self, v: T) -> Self
Sets the value of compute_style_info.
§Example
ⓘ
let x = PremiumFeatures::new().set_compute_style_info(true);Sourcepub fn set_enable_math_ocr<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_math_ocr<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_math_ocr.
§Example
ⓘ
let x = PremiumFeatures::new().set_enable_math_ocr(true);Trait Implementations§
Source§impl Clone for PremiumFeatures
impl Clone for PremiumFeatures
Source§fn clone(&self) -> PremiumFeatures
fn clone(&self) -> PremiumFeatures
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 PremiumFeatures
impl Debug for PremiumFeatures
Source§impl Default for PremiumFeatures
impl Default for PremiumFeatures
Source§fn default() -> PremiumFeatures
fn default() -> PremiumFeatures
Returns the “default value” for a type. Read more
Source§impl Message for PremiumFeatures
impl Message for PremiumFeatures
Source§impl PartialEq for PremiumFeatures
impl PartialEq for PremiumFeatures
impl StructuralPartialEq for PremiumFeatures
Auto Trait Implementations§
impl Freeze for PremiumFeatures
impl RefUnwindSafe for PremiumFeatures
impl Send for PremiumFeatures
impl Sync for PremiumFeatures
impl Unpin for PremiumFeatures
impl UnwindSafe for PremiumFeatures
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