pub struct VisionConfig {
pub provider: String,
pub model_path: Option<String>,
pub output_format: String,
pub use_gpu: bool,
pub language: Option<String>,
pub image_input: String,
pub options: Value,
}Expand description
Configuration for Vision/OCR nodes
Fields§
§provider: StringOCR provider (e.g., “mock”, “tesseract”, “surya”, “paddle”)
model_path: Option<String>Path to model files (for ONNX-based providers)
output_format: StringOutput format preference (“text”, “markdown”, “json”)
use_gpu: boolWhether to use GPU acceleration
language: Option<String>Target language(s) for OCR (e.g., “eng”, “jpn”, “eng+jpn”)
image_input: StringImage input reference (variable name containing image data or path)
options: ValueAdditional provider-specific options
Trait Implementations§
Source§impl Clone for VisionConfig
impl Clone for VisionConfig
Source§fn clone(&self) -> VisionConfig
fn clone(&self) -> VisionConfig
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 VisionConfig
impl Debug for VisionConfig
Source§impl<'de> Deserialize<'de> for VisionConfig
impl<'de> Deserialize<'de> for VisionConfig
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 VisionConfig
impl RefUnwindSafe for VisionConfig
impl Send for VisionConfig
impl Sync for VisionConfig
impl Unpin for VisionConfig
impl UnwindSafe for VisionConfig
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