pub struct OcrBody {
pub tool_type: Option<OcrToolType>,
pub language_type: Option<OcrLanguageType>,
pub probability: Option<bool>,
pub request_id: Option<String>,
pub user_id: Option<String>,
}Expand description
Body parameters holder for OCR request (used to build multipart form)
Fields§
§tool_type: Option<OcrToolType>Tool type (fixed as “hand_write” for handwriting recognition)
language_type: Option<OcrLanguageType>Language type for recognition (default: CHN_ENG)
probability: Option<bool>Whether to return confidence information
request_id: Option<String>Client-provided unique request id
user_id: Option<String>End user id (6..=128 chars)
Implementations§
Source§impl OcrBody
impl OcrBody
pub fn new() -> Self
pub fn with_tool_type(self, tool_type: OcrToolType) -> Self
pub fn with_language_type(self, language_type: OcrLanguageType) -> Self
pub fn with_probability(self, probability: bool) -> Self
pub fn with_request_id(self, request_id: impl Into<String>) -> Self
pub fn with_user_id(self, user_id: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'v_a> ValidateArgs<'v_a> for OcrBody
impl<'v_a> ValidateArgs<'v_a> for OcrBody
Auto Trait Implementations§
impl Freeze for OcrBody
impl RefUnwindSafe for OcrBody
impl Send for OcrBody
impl Sync for OcrBody
impl Unpin for OcrBody
impl UnsafeUnpin for OcrBody
impl UnwindSafe for OcrBody
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