pub struct OCRRequest {Show 15 fields
pub request_type: String,
pub request_id: Option<String>,
pub model: Option<String>,
pub framework: Option<String>,
pub image: String,
pub languages: Vec<String>,
pub gpu: bool,
pub detail: bool,
pub paragraph: bool,
pub min_confidence: Option<f32>,
pub user_id: Option<String>,
pub organizations: Option<HashMap<String, HashMap<String, String>>>,
pub handle: Option<String>,
pub output_topic: Option<String>,
pub output_partition: Option<i32>,
}
Fields§
§request_type: String
§request_id: Option<String>
§model: Option<String>
§framework: Option<String>
§image: String
§languages: Vec<String>
§gpu: bool
§detail: bool
§paragraph: bool
§min_confidence: Option<f32>
§user_id: Option<String>
§organizations: Option<HashMap<String, HashMap<String, String>>>
§handle: Option<String>
§output_topic: Option<String>
§output_partition: Option<i32>
Trait Implementations§
Source§impl Default for OCRRequest
impl Default for OCRRequest
Source§fn default() -> OCRRequest
fn default() -> OCRRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OCRRequest
impl<'de> Deserialize<'de> for OCRRequest
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 Request for OCRRequest
impl Request for OCRRequest
fn set_user_id(&mut self, user_id: String)
fn set_output_topic(&mut self, output_topic: String)
fn set_request_id(&mut self, request_id: String)
fn set_organizations( &mut self, organizations: HashMap<String, HashMap<String, String>>, )
fn set_handle(&mut self, handle: String)
Auto Trait Implementations§
impl Freeze for OCRRequest
impl RefUnwindSafe for OCRRequest
impl Send for OCRRequest
impl Sync for OCRRequest
impl Unpin for OCRRequest
impl UnwindSafe for OCRRequest
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> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
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> 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> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.