#[non_exhaustive]pub struct TextTranslationJobProperties {Show 15 fields
pub job_id: Option<String>,
pub job_name: Option<String>,
pub job_status: Option<JobStatus>,
pub job_details: Option<JobDetails>,
pub source_language_code: Option<String>,
pub target_language_codes: Option<Vec<String>>,
pub terminology_names: Option<Vec<String>>,
pub parallel_data_names: Option<Vec<String>>,
pub message: Option<String>,
pub submitted_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub input_data_config: Option<InputDataConfig>,
pub output_data_config: Option<OutputDataConfig>,
pub data_access_role_arn: Option<String>,
pub settings: Option<TranslationSettings>,
}
Expand description
Provides information about a translation job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.job_id: Option<String>
The ID of the translation job.
job_name: Option<String>
The user-defined name of the translation job.
job_status: Option<JobStatus>
The status of the translation job.
job_details: Option<JobDetails>
The number of documents successfully and unsuccessfully processed during the translation job.
source_language_code: Option<String>
The language code of the language of the source text. The language must be a language supported by Amazon Translate.
target_language_codes: Option<Vec<String>>
The language code of the language of the target text. The language must be a language supported by Amazon Translate.
terminology_names: Option<Vec<String>>
A list containing the names of the terminologies applied to a translation job. Only one terminology can be applied per StartTextTranslationJob
request at this time.
parallel_data_names: Option<Vec<String>>
A list containing the names of the parallel data resources applied to the translation job.
message: Option<String>
An explanation of any errors that may have occurred during the translation job.
submitted_time: Option<DateTime>
The time at which the translation job was submitted.
end_time: Option<DateTime>
The time at which the translation job ended.
input_data_config: Option<InputDataConfig>
The input configuration properties that were specified when the job was requested.
output_data_config: Option<OutputDataConfig>
The output configuration properties that were specified when the job was requested.
data_access_role_arn: Option<String>
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that granted Amazon Translate read access to the job's input data.
settings: Option<TranslationSettings>
Settings that modify the translation output.
Implementations§
source§impl TextTranslationJobProperties
impl TextTranslationJobProperties
sourcepub fn job_status(&self) -> Option<&JobStatus>
pub fn job_status(&self) -> Option<&JobStatus>
The status of the translation job.
sourcepub fn job_details(&self) -> Option<&JobDetails>
pub fn job_details(&self) -> Option<&JobDetails>
The number of documents successfully and unsuccessfully processed during the translation job.
sourcepub fn source_language_code(&self) -> Option<&str>
pub fn source_language_code(&self) -> Option<&str>
The language code of the language of the source text. The language must be a language supported by Amazon Translate.
sourcepub fn target_language_codes(&self) -> &[String]
pub fn target_language_codes(&self) -> &[String]
The language code of the language of the target text. The language must be a language supported by Amazon Translate.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_language_codes.is_none()
.
sourcepub fn terminology_names(&self) -> &[String]
pub fn terminology_names(&self) -> &[String]
A list containing the names of the terminologies applied to a translation job. Only one terminology can be applied per StartTextTranslationJob
request at this time.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .terminology_names.is_none()
.
sourcepub fn parallel_data_names(&self) -> &[String]
pub fn parallel_data_names(&self) -> &[String]
A list containing the names of the parallel data resources applied to the translation job.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parallel_data_names.is_none()
.
sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
An explanation of any errors that may have occurred during the translation job.
sourcepub fn submitted_time(&self) -> Option<&DateTime>
pub fn submitted_time(&self) -> Option<&DateTime>
The time at which the translation job was submitted.
sourcepub fn input_data_config(&self) -> Option<&InputDataConfig>
pub fn input_data_config(&self) -> Option<&InputDataConfig>
The input configuration properties that were specified when the job was requested.
sourcepub fn output_data_config(&self) -> Option<&OutputDataConfig>
pub fn output_data_config(&self) -> Option<&OutputDataConfig>
The output configuration properties that were specified when the job was requested.
sourcepub fn data_access_role_arn(&self) -> Option<&str>
pub fn data_access_role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role that granted Amazon Translate read access to the job's input data.
sourcepub fn settings(&self) -> Option<&TranslationSettings>
pub fn settings(&self) -> Option<&TranslationSettings>
Settings that modify the translation output.
source§impl TextTranslationJobProperties
impl TextTranslationJobProperties
sourcepub fn builder() -> TextTranslationJobPropertiesBuilder
pub fn builder() -> TextTranslationJobPropertiesBuilder
Creates a new builder-style object to manufacture TextTranslationJobProperties
.
Trait Implementations§
source§impl Clone for TextTranslationJobProperties
impl Clone for TextTranslationJobProperties
source§fn clone(&self) -> TextTranslationJobProperties
fn clone(&self) -> TextTranslationJobProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextTranslationJobProperties
impl Debug for TextTranslationJobProperties
source§impl PartialEq for TextTranslationJobProperties
impl PartialEq for TextTranslationJobProperties
source§fn eq(&self, other: &TextTranslationJobProperties) -> bool
fn eq(&self, other: &TextTranslationJobProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TextTranslationJobProperties
Auto Trait Implementations§
impl Freeze for TextTranslationJobProperties
impl RefUnwindSafe for TextTranslationJobProperties
impl Send for TextTranslationJobProperties
impl Sync for TextTranslationJobProperties
impl Unpin for TextTranslationJobProperties
impl UnwindSafe for TextTranslationJobProperties
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more