[][src]Trait rusoto_translate::Translate

pub trait Translate {
#[must_use]    pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
;
#[must_use] pub 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
; }

Trait representing the capabilities of the Amazon Translate API. Amazon Translate clients implement this trait.

Required methods

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

#[must_use]pub 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.

Loading content...

Implementors

impl Translate for TranslateClient[src]

pub 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.

pub 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.

pub 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.

pub 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.

pub 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.

pub 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.

pub 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.

pub 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.

pub 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.

Loading content...