Struct aws_sdk_translate::types::builders::DocumentBuilder
source · #[non_exhaustive]pub struct DocumentBuilder { /* private fields */ }Expand description
A builder for Document.
Implementations§
source§impl DocumentBuilder
impl DocumentBuilder
sourcepub fn content(self, input: Blob) -> Self
pub fn content(self, input: Blob) -> Self
The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.
sourcepub fn set_content(self, input: Option<Blob>) -> Self
pub fn set_content(self, input: Option<Blob>) -> Self
The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.
sourcepub fn get_content(&self) -> &Option<Blob>
pub fn get_content(&self) -> &Option<Blob>
The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
Describes the format of the document. You can specify one of the following:
-
text/html- The input data consists of HTML content. Amazon Translate translates only the text in the HTML element. -
text/plain- The input data consists of unformatted text. Amazon Translate translates every character in the content. -
application/vnd.openxmlformats-officedocument.wordprocessingml.document- The input data consists of a Word document (.docx).
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
Describes the format of the document. You can specify one of the following:
-
text/html- The input data consists of HTML content. Amazon Translate translates only the text in the HTML element. -
text/plain- The input data consists of unformatted text. Amazon Translate translates every character in the content. -
application/vnd.openxmlformats-officedocument.wordprocessingml.document- The input data consists of a Word document (.docx).
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
Describes the format of the document. You can specify one of the following:
-
text/html- The input data consists of HTML content. Amazon Translate translates only the text in the HTML element. -
text/plain- The input data consists of unformatted text. Amazon Translate translates every character in the content. -
application/vnd.openxmlformats-officedocument.wordprocessingml.document- The input data consists of a Word document (.docx).
Trait Implementations§
source§impl Clone for DocumentBuilder
impl Clone for DocumentBuilder
source§fn clone(&self) -> DocumentBuilder
fn clone(&self) -> DocumentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DocumentBuilder
impl Debug for DocumentBuilder
source§impl Default for DocumentBuilder
impl Default for DocumentBuilder
source§fn default() -> DocumentBuilder
fn default() -> DocumentBuilder
source§impl PartialEq for DocumentBuilder
impl PartialEq for DocumentBuilder
source§fn eq(&self, other: &DocumentBuilder) -> bool
fn eq(&self, other: &DocumentBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DocumentBuilder
Auto Trait Implementations§
impl Freeze for DocumentBuilder
impl RefUnwindSafe for DocumentBuilder
impl Send for DocumentBuilder
impl Sync for DocumentBuilder
impl Unpin for DocumentBuilder
impl UnwindSafe for DocumentBuilder
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