Struct yandex_translate_async::Translate [−][src]
pub struct Translate { /* fields omitted */ }
Methods
impl Translate
[src]
impl Translate
pub fn new(api_key: &str) -> Translate
[src]
pub fn new(api_key: &str) -> Translate
pub fn translate(
&self,
text: &str,
from_lang: &str,
to_lang: &str
) -> Box<Future<Item = String, Error = Error> + Send>
[src]
pub fn translate(
&self,
text: &str,
from_lang: &str,
to_lang: &str
) -> Box<Future<Item = String, Error = Error> + Send>