[][src]Struct rusoto_translate::TranslateClient

pub struct TranslateClient { /* fields omitted */ }

A client for the Amazon Translate API.

Methods

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,
    D: DispatchSignedRequest + Send + Sync + 'static, 
[src]

pub fn new_with_client(client: Client, region: Region) -> TranslateClient[src]

Trait Implementations

impl Clone for TranslateClient[src]

impl Translate for TranslateClient[src]

fn delete_terminology<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteTerminologyRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteTerminologyError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

A synchronous action that deletes a custom terminology.

fn describe_text_translation_job<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeTextTranslationJobRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeTextTranslationJobResponse, RusotoError<DescribeTextTranslationJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets the properties associated with an asycnhronous batch translation job including name, ID, status, source and target languages, input/output S3 buckets, and so on.

fn get_terminology<'life0, 'async_trait>(
    &'life0 self,
    input: GetTerminologyRequest
) -> Pin<Box<dyn Future<Output = Result<GetTerminologyResponse, RusotoError<GetTerminologyError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Retrieves a custom terminology.

fn import_terminology<'life0, 'async_trait>(
    &'life0 self,
    input: ImportTerminologyRequest
) -> Pin<Box<dyn Future<Output = Result<ImportTerminologyResponse, RusotoError<ImportTerminologyError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

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<'life0, 'async_trait>(
    &'life0 self,
    input: ListTerminologiesRequest
) -> Pin<Box<dyn Future<Output = Result<ListTerminologiesResponse, RusotoError<ListTerminologiesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Provides a list of custom terminologies associated with your account.

fn list_text_translation_jobs<'life0, 'async_trait>(
    &'life0 self,
    input: ListTextTranslationJobsRequest
) -> Pin<Box<dyn Future<Output = Result<ListTextTranslationJobsResponse, RusotoError<ListTextTranslationJobsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Gets a list of the batch translation jobs that you have submitted.

fn start_text_translation_job<'life0, 'async_trait>(
    &'life0 self,
    input: StartTextTranslationJobRequest
) -> Pin<Box<dyn Future<Output = Result<StartTextTranslationJobResponse, RusotoError<StartTextTranslationJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Starts an asynchronous batch translation job. Batch translation jobs can be used to translate large volumes of text across multiple documents at once. For more information, see async.

Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.

Amazon Translate does not support batch translation of multiple source languages at once.

fn stop_text_translation_job<'life0, 'async_trait>(
    &'life0 self,
    input: StopTextTranslationJobRequest
) -> Pin<Box<dyn Future<Output = Result<StopTextTranslationJobResponse, RusotoError<StopTextTranslationJobError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Stops an asynchronous batch translation job that is in progress.

If the job's state is IN_PROGRESS, the job will be marked for termination and put into the STOP_REQUESTED state. If the job completes before it can be stopped, it is put into the COMPLETED state. Otherwise, the job is put into the STOPPED state.

Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use the DescribeTextTranslationJob or ListTextTranslationJobs operations to get a batch translation job's JobId.

fn translate_text<'life0, 'async_trait>(
    &'life0 self,
    input: TranslateTextRequest
) -> Pin<Box<dyn Future<Output = Result<TranslateTextResponse, RusotoError<TranslateTextError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Translates input text from the source language to the target language. For a list of available languages and language codes, see what-is-languages.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.