pub struct PhotoIngesterConfig {
pub language_hints: Vec<String>,
pub min_confidence: Option<f32>,
pub content_weight: f32,
}Expand description
Configuration for photo ingestion.
Fields§
§language_hints: Vec<String>Language hints passed to OCR backends by default.
min_confidence: Option<f32>Drop OCR blocks below this confidence when set.
content_weight: f32Weight applied to all OCR-derived content blocks.
Implementations§
Source§impl PhotoIngesterConfig
impl PhotoIngesterConfig
Sourcepub fn without_confidence_filter(self) -> Self
pub fn without_confidence_filter(self) -> Self
Disable default confidence filtering.
Trait Implementations§
Source§impl Clone for PhotoIngesterConfig
impl Clone for PhotoIngesterConfig
Source§fn clone(&self) -> PhotoIngesterConfig
fn clone(&self) -> PhotoIngesterConfig
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 PhotoIngesterConfig
impl Debug for PhotoIngesterConfig
Auto Trait Implementations§
impl Freeze for PhotoIngesterConfig
impl RefUnwindSafe for PhotoIngesterConfig
impl Send for PhotoIngesterConfig
impl Sync for PhotoIngesterConfig
impl Unpin for PhotoIngesterConfig
impl UnsafeUnpin for PhotoIngesterConfig
impl UnwindSafe for PhotoIngesterConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request