deepl_pro/lib.rs
1//! Client to call the DeepL API.
2#![deny(missing_docs)]
3#![forbid(unsafe_code)]
4
5mod api;
6mod error;
7mod lang;
8
9pub use api::{
10 ApiOptions, DeeplApi, Formality, Language, LanguageType, SplitSentences, TagHandling,
11 TranslateTextRequest, TranslateTextResponse, Usage,
12};
13pub use error::Error;
14pub use lang::Lang;
15
16/// Result type for the library.
17pub type Result<T> = std::result::Result<T, Error>;