[−][src]Struct rusoto_translate::TranslateClient
A client for the Amazon Translate API.
Methods
impl TranslateClient
[src]
impl TranslateClient
pub fn new(region: Region) -> TranslateClient
[src]
pub fn new(region: Region) -> TranslateClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> TranslateClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
[src]
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region
) -> TranslateClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
Trait Implementations
impl Translate for TranslateClient
[src]
impl Translate for TranslateClient
fn translate_text(
&self,
input: TranslateTextRequest
) -> RusotoFuture<TranslateTextResponse, TranslateTextError>
[src]
fn translate_text(
&self,
input: TranslateTextRequest
) -> RusotoFuture<TranslateTextResponse, TranslateTextError>
Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.
-
Arabic (ar)
-
Chinese (Simplified) (zh)
-
French (fr)
-
German (de)
-
Portuguese (pt)
-
Spanish (es)
To have Amazon Translate determine the source language of your text, you can specify auto
in the SourceLanguageCode
field. If you specify auto
, Amazon Translate will call Amazon Comprehend to determine the source language.
Auto Trait Implementations
impl Send for TranslateClient
impl Send for TranslateClient
impl Sync for TranslateClient
impl Sync for TranslateClient
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T> Erased for T