pub struct RecognizeService { /* private fields */ }Expand description
Implementations§
Source§impl RecognizeService
impl RecognizeService
Sourcepub fn with_options(&self, options: RequestOptions) -> Self
pub fn with_options(&self, options: RequestOptions) -> Self
Devolve uma cópia do serviço que usa options em todas as
chamadas.
Sourcepub async fn base64(&self, body: impl IntoBody) -> Result<DeviceResponse>
pub async fn base64(&self, body: impl IntoBody) -> Result<DeviceResponse>
Reconhece o conteúdo de uma imagem em base64:
POST /recognize/base64.
Sourcepub async fn uri(&self, body: impl IntoBody) -> Result<DeviceResponse>
pub async fn uri(&self, body: impl IntoBody) -> Result<DeviceResponse>
Reconhece o conteúdo de uma imagem por URL:
POST /recognize/uri.
Methods from Deref<Target = DeviceProxyService>§
Sourcepub fn with_options(&self, options: RequestOptions) -> Self
pub fn with_options(&self, options: RequestOptions) -> Self
Devolve uma cópia do serviço que usa options em todas as
chamadas.
Methods from Deref<Target = BaseService>§
Sourcepub fn http(&self) -> &Arc<HttpClient>
pub fn http(&self) -> &Arc<HttpClient>
Cliente HTTP compartilhado.
Sourcepub fn options(&self) -> &RequestOptions
pub fn options(&self) -> &RequestOptions
Opções aplicadas a todas as chamadas deste serviço.
Sourcepub fn with_options(&self, options: RequestOptions) -> Self
pub fn with_options(&self, options: RequestOptions) -> Self
Devolve uma cópia do serviço que usa options em todas as
chamadas.
Sourcepub async fn request(
&self,
method: Method,
path: &str,
body: impl IntoBody,
) -> Result<Json>
pub async fn request( &self, method: Method, path: &str, body: impl IntoBody, ) -> Result<Json>
Executa uma requisição arbitrária no gateway.
Trait Implementations§
Source§impl Clone for RecognizeService
impl Clone for RecognizeService
Source§fn clone(&self) -> RecognizeService
fn clone(&self) -> RecognizeService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecognizeService
impl Debug for RecognizeService
Auto Trait Implementations§
impl !RefUnwindSafe for RecognizeService
impl !UnwindSafe for RecognizeService
impl Freeze for RecognizeService
impl Send for RecognizeService
impl Sync for RecognizeService
impl Unpin for RecognizeService
impl UnsafeUnpin for RecognizeService
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