deepl-pro 0.1.0

Client for the DeepL translation API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Client to call the DeepL API.
#![deny(missing_docs)]
#![forbid(unsafe_code)]

mod api;
mod error;
mod lang;

pub use api::{
    ApiOptions, DeeplApi, Formality, Language, LanguageType, SplitSentences, TagHandling,
    TranslateTextRequest, TranslateTextResponse, Usage,
};
pub use error::Error;
pub use lang::Lang;

/// Result type for the library.
pub type Result<T> = std::result::Result<T, Error>;