Struct aws_sdk_translate::model::TerminologyData
source · [−]#[non_exhaustive]pub struct TerminologyData {
pub file: Option<Blob>,
pub format: Option<TerminologyDataFormat>,
pub directionality: Option<Directionality>,
}Expand description
The data associated with 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.file: Option<Blob>The file containing the custom terminology data. Your version of the AWS SDK performs a Base64-encoding on this field before sending a request to the AWS service. Users of the SDK should not perform Base64-encoding themselves.
format: Option<TerminologyDataFormat>The data format of the custom terminology.
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 (for example, 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 or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains terms in English and Spanish, then it can be used for jobs that translate English to Spanish and jobs that translate Spanish to English.
When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.
Implementations
sourceimpl TerminologyData
impl TerminologyData
sourcepub fn file(&self) -> Option<&Blob>
pub fn file(&self) -> Option<&Blob>
The file containing the custom terminology data. Your version of the AWS SDK performs a Base64-encoding on this field before sending a request to the AWS service. Users of the SDK should not perform Base64-encoding themselves.
sourcepub fn format(&self) -> Option<&TerminologyDataFormat>
pub fn format(&self) -> Option<&TerminologyDataFormat>
The data format of the custom terminology.
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 (for example, 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 or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains terms in English and Spanish, then it can be used for jobs that translate English to Spanish and jobs that translate Spanish to English.
When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.
sourceimpl TerminologyData
impl TerminologyData
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TerminologyData
Trait Implementations
sourceimpl Clone for TerminologyData
impl Clone for TerminologyData
sourcefn clone(&self) -> TerminologyData
fn clone(&self) -> TerminologyData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TerminologyData
impl Debug for TerminologyData
sourceimpl PartialEq<TerminologyData> for TerminologyData
impl PartialEq<TerminologyData> for TerminologyData
sourcefn eq(&self, other: &TerminologyData) -> bool
fn eq(&self, other: &TerminologyData) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TerminologyData) -> bool
fn ne(&self, other: &TerminologyData) -> bool
This method tests for !=.
impl StructuralPartialEq for TerminologyData
Auto Trait Implementations
impl RefUnwindSafe for TerminologyData
impl Send for TerminologyData
impl Sync for TerminologyData
impl Unpin for TerminologyData
impl UnwindSafe for TerminologyData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more