[][src]Struct ytr::ApiClient

pub struct ApiClient { /* fields omitted */ }

Client to call API methods.

Methods

impl ApiClient
[src]

Create new ApiClient with the specified API key.

Panic

Panics if native TLS backend cannot be created or initialized.

Create LangsRequest to call getLangs API method.

Create DetectRequest to call detect API method.

Create TranslateRequest to call translate API method.

Execute prepared request.

Note: this crate's ApiRequest structs have get() method, so that you don't need to call execute manually. But you can still use it to execute custom request structs that implement ApiRequest.

Panic

Panics if req cannot be serialized with serde_urlencoded.

Trait Implementations

impl Debug for ApiClient
[src]

Auto Trait Implementations

impl Send for ApiClient

impl Sync for ApiClient

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T