deepl 0.2.1

A Rust implementation of the DeepL API
Documentation
# DeepL Api

[<img alt="github" src="https://img.shields.io/badge/github-Avimitin/deepl--rs-7E9CD8?style=flat&labelColor=252535&logo=github" height="20">](https://github.com/Avimitin/deepl-rs)
[<img alt="crates.io" src="https://img.shields.io/crates/v/deepl.svg?style=flat&color=fd7726&labelColor=252535&logo=rust" height="20">](https://crates.io/crates/deepl)
[<img alt="docs.rs" src="https://img.shields.io/docsrs/deepl?color=252535&logo=rust&labelColor=2B3328" height="20">](https://docs.rs/deepl/latest/deepl/)

Typed HTTP wrapper for interacting with DeepL API. File upload/download is also implemented.

## Usage

```toml
[dependencies]
deepl = "0.2.0"
```

```rust
use deepl::{DeepLApi, Lang};

let api = DeepLApi::new("YOUR AUTH KEY");

let props = TranslateTextProp::builder()
                .target_lang(Lang::ZH)
                .build();
let translated = api.translate("Hello World", &props).await.unwrap();

assert!(!translated.translations.is_empty());

let sentences = translated.translations;
assert_eq!(sentences[0].text, "你好,世界");
```

## License

[MIT](./LICENSE)