Struct aws_sdk_translate::types::TerminologyProperties
source · #[non_exhaustive]pub struct TerminologyProperties {Show 14 fields
pub name: Option<String>,
pub description: Option<String>,
pub arn: Option<String>,
pub source_language_code: Option<String>,
pub target_language_codes: Option<Vec<String>>,
pub encryption_key: Option<EncryptionKey>,
pub size_bytes: Option<i32>,
pub term_count: Option<i32>,
pub created_at: Option<DateTime>,
pub last_updated_at: Option<DateTime>,
pub directionality: Option<Directionality>,
pub message: Option<String>,
pub skipped_term_count: Option<i32>,
pub format: Option<TerminologyDataFormat>,
}
Expand description
The properties of the custom terminology.
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.name: Option<String>
The name of the custom terminology.
description: Option<String>
The description of the custom terminology properties.
arn: Option<String>
The Amazon Resource Name (ARN) of the custom terminology.
source_language_code: Option<String>
The language code for the source text of the translation request for which the custom terminology is being used.
target_language_codes: Option<Vec<String>>
The language codes for the target languages available with the custom terminology resource. All possible target languages are returned in array.
encryption_key: Option<EncryptionKey>
The encryption key for the custom terminology.
size_bytes: Option<i32>
The size of the file used when importing a custom terminology.
term_count: Option<i32>
The number of terms included in the custom terminology.
created_at: Option<DateTime>
The time at which the custom terminology was created, based on the timestamp.
last_updated_at: Option<DateTime>
The time at which the custom terminology was last update, based on the timestamp.
directionality: Option<Directionality>
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
- UNI
-
The terminology resource has one source language (the first column in a CSV file), and all of its other languages are target languages.
- MULTI
-
Any language in the terminology resource can be the source language.
message: Option<String>
Additional information from Amazon Translate about the terminology resource.
skipped_term_count: Option<i32>
The number of terms in the input file that Amazon Translate skipped when you created or updated the terminology resource.
format: Option<TerminologyDataFormat>
The format of the custom terminology input file.
Implementations§
source§impl TerminologyProperties
impl TerminologyProperties
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the custom terminology properties.
sourcepub fn source_language_code(&self) -> Option<&str>
pub fn source_language_code(&self) -> Option<&str>
The language code for the source text of the translation request for which the custom terminology is being used.
sourcepub fn target_language_codes(&self) -> &[String]
pub fn target_language_codes(&self) -> &[String]
The language codes for the target languages available with the custom terminology resource. All possible target languages are returned in array.
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 encryption_key(&self) -> Option<&EncryptionKey>
pub fn encryption_key(&self) -> Option<&EncryptionKey>
The encryption key for the custom terminology.
sourcepub fn size_bytes(&self) -> Option<i32>
pub fn size_bytes(&self) -> Option<i32>
The size of the file used when importing a custom terminology.
sourcepub fn term_count(&self) -> Option<i32>
pub fn term_count(&self) -> Option<i32>
The number of terms included in the custom terminology.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The time at which the custom terminology was created, based on the timestamp.
sourcepub fn last_updated_at(&self) -> Option<&DateTime>
pub fn last_updated_at(&self) -> Option<&DateTime>
The time at which the custom terminology was last update, based on the timestamp.
sourcepub fn directionality(&self) -> Option<&Directionality>
pub fn directionality(&self) -> Option<&Directionality>
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
- UNI
-
The terminology resource has one source language (the first column in a CSV file), and all of its other languages are target languages.
- MULTI
-
Any language in the terminology resource can be the source language.
sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
Additional information from Amazon Translate about the terminology resource.
sourcepub fn skipped_term_count(&self) -> Option<i32>
pub fn skipped_term_count(&self) -> Option<i32>
The number of terms in the input file that Amazon Translate skipped when you created or updated the terminology resource.
sourcepub fn format(&self) -> Option<&TerminologyDataFormat>
pub fn format(&self) -> Option<&TerminologyDataFormat>
The format of the custom terminology input file.
source§impl TerminologyProperties
impl TerminologyProperties
sourcepub fn builder() -> TerminologyPropertiesBuilder
pub fn builder() -> TerminologyPropertiesBuilder
Creates a new builder-style object to manufacture TerminologyProperties
.
Trait Implementations§
source§impl Clone for TerminologyProperties
impl Clone for TerminologyProperties
source§fn clone(&self) -> TerminologyProperties
fn clone(&self) -> TerminologyProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TerminologyProperties
impl Debug for TerminologyProperties
source§impl PartialEq for TerminologyProperties
impl PartialEq for TerminologyProperties
source§fn eq(&self, other: &TerminologyProperties) -> bool
fn eq(&self, other: &TerminologyProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TerminologyProperties
Auto Trait Implementations§
impl Freeze for TerminologyProperties
impl RefUnwindSafe for TerminologyProperties
impl Send for TerminologyProperties
impl Sync for TerminologyProperties
impl Unpin for TerminologyProperties
impl UnwindSafe for TerminologyProperties
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