[][src]Struct rusoto_translate::TranslateClient

pub struct TranslateClient { /* fields omitted */ }

A client for the Amazon Translate API.


impl TranslateClient[src]

pub fn new(region: Region) -> TranslateClient[src]

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

pub fn new_with<P, D>(
    request_dispatcher: D,
    credentials_provider: P,
    region: Region
) -> TranslateClient where
    P: ProvideAwsCredentials + Send + Sync + 'static,
    P::Future: Send,
    D: DispatchSignedRequest + Send + Sync + 'static,
    D::Future: Send

Trait Implementations

impl Translate for TranslateClient[src]

fn delete_terminology(
    input: DeleteTerminologyRequest
) -> RusotoFuture<(), DeleteTerminologyError>

A synchronous action that deletes a custom terminology.

fn get_terminology(
    input: GetTerminologyRequest
) -> RusotoFuture<GetTerminologyResponse, GetTerminologyError>

Retrieves a custom terminology.

fn import_terminology(
    input: ImportTerminologyRequest
) -> RusotoFuture<ImportTerminologyResponse, ImportTerminologyError>

Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.

fn list_terminologies(
    input: ListTerminologiesRequest
) -> RusotoFuture<ListTerminologiesResponse, ListTerminologiesError>

Provides a list of custom terminologies associated with your account.

fn translate_text(
    input: TranslateTextRequest
) -> RusotoFuture<TranslateTextResponse, TranslateTextError>

Translates input text from the source language to the target language. It is not necessary to use English (en) as either the source or the target language but not all language combinations are supported by Amazon Translate. For more information, see Supported Language Pairs.

  • Arabic (ar)

  • Chinese (Simplified) (zh)

  • Chinese (Traditional) (zh-TW)

  • Czech (cs)

  • Danish (da)

  • Dutch (nl)

  • English (en)

  • Finnish (fi)

  • French (fr)

  • German (de)

  • Hebrew (he)

  • Indonesian (id)

  • Italian (it)

  • Japanese (ja)

  • Korean (ko)

  • Polish (pl)

  • Portuguese (pt)

  • Russian (ru)

  • Spanish (es)

  • Swedish (sv)

  • Turkish (tr)

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

impl Clone for TranslateClient[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for TranslateClient

impl Sync for TranslateClient

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 

type Error = !

🔬 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

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

🔬 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

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self