pub struct CorreiosService { /* private fields */ }Expand description
Implementations§
Source§impl CorreiosService
impl CorreiosService
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 rastreio(&self, body: impl IntoBody) -> Result<DeviceResponse>
pub async fn rastreio(&self, body: impl IntoBody) -> Result<DeviceResponse>
Rastreia uma encomenda: POST /correios/rastreio.
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 CorreiosService
impl Clone for CorreiosService
Source§fn clone(&self) -> CorreiosService
fn clone(&self) -> CorreiosService
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 CorreiosService
impl Debug for CorreiosService
Auto Trait Implementations§
impl !RefUnwindSafe for CorreiosService
impl !UnwindSafe for CorreiosService
impl Freeze for CorreiosService
impl Send for CorreiosService
impl Sync for CorreiosService
impl Unpin for CorreiosService
impl UnsafeUnpin for CorreiosService
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