# Rust API client for deepl
The DeepL API provides programmatic access to DeepL’s machine translation technology.
For more information, please visit [https://www.deepl.com/contact-us](https://www.deepl.com/contact-us)
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
- API version: 2.7.0
- Package version: 2.7.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
## Installation
Put the package under your project folder in a directory named `deepl` and add the following to `Cargo.toml` under `[dependencies]`:
```
cargo add deepl-openapi
```
## Documentation for API Endpoints
All URIs are relative to *https://api.deepl.com/v2*
*ManageGlossariesApi* | [**create_glossary**](docs/ManageGlossariesApi.md#create_glossary) | **POST** /glossaries | Create a Glossary
*ManageGlossariesApi* | [**delete_glossary**](docs/ManageGlossariesApi.md#delete_glossary) | **DELETE** /glossaries/{glossary_id} | Delete a Glossary
*ManageGlossariesApi* | [**get_glossary**](docs/ManageGlossariesApi.md#get_glossary) | **GET** /glossaries/{glossary_id} | Retrieve Glossary Details
*ManageGlossariesApi* | [**get_glossary_entries**](docs/ManageGlossariesApi.md#get_glossary_entries) | **GET** /glossaries/{glossary_id}/entries | Retrieve Glossary Entries
*ManageGlossariesApi* | [**list_glossaries**](docs/ManageGlossariesApi.md#list_glossaries) | **GET** /glossaries | List all Glossaries
*ManageGlossariesApi* | [**list_glossary_languages**](docs/ManageGlossariesApi.md#list_glossary_languages) | **GET** /glossary-language-pairs | List Language Pairs Supported by Glossaries
*MetaInformationApi* | [**get_languages**](docs/MetaInformationApi.md#get_languages) | **GET** /languages | Retrieve Supported Languages
*MetaInformationApi* | [**get_usage**](docs/MetaInformationApi.md#get_usage) | **GET** /usage | Check Usage and Limits
*TranslateDocumentsApi* | [**download_document**](docs/TranslateDocumentsApi.md#download_document) | **POST** /document/{document_id}/result | Download Translated Document
*TranslateDocumentsApi* | [**get_document_status**](docs/TranslateDocumentsApi.md#get_document_status) | **POST** /document/{document_id} | Check Document Status
*TranslateDocumentsApi* | [**translate_document**](docs/TranslateDocumentsApi.md#translate_document) | **POST** /document | Upload and Translate a Document
*TranslateTextApi* | [**translate_text**](docs/TranslateTextApi.md#translate_text) | **POST** /translate | Request Translation
## Documentation For Models
- [DocumentTranslationError](docs/DocumentTranslationError.md)
- [GetDocumentStatus200Response](docs/GetDocumentStatus200Response.md)
- [GetLanguages200ResponseInner](docs/GetLanguages200ResponseInner.md)
- [GetUsage200Response](docs/GetUsage200Response.md)
- [Glossary](docs/Glossary.md)
- [GlossarySourceLanguage](docs/GlossarySourceLanguage.md)
- [GlossaryTargetLanguage](docs/GlossaryTargetLanguage.md)
- [ListGlossaries200Response](docs/ListGlossaries200Response.md)
- [ListGlossaryLanguages200Response](docs/ListGlossaryLanguages200Response.md)
- [ListGlossaryLanguages200ResponseSupportedLanguagesInner](docs/ListGlossaryLanguages200ResponseSupportedLanguagesInner.md)
- [ListGlossaryLanguages400Response](docs/ListGlossaryLanguages400Response.md)
- [SourceLanguage](docs/SourceLanguage.md)
- [TranslateDocument200Response](docs/TranslateDocument200Response.md)
- [TranslateText200Response](docs/TranslateText200Response.md)
- [TranslateText200ResponseTranslationsInner](docs/TranslateText200ResponseTranslationsInner.md)
To get access to the crate's generated documentation, use:
```
cargo doc --open
```
## [Apache License 2.0](LICENSE)