lingual 1.1.0

Free and Unlimited Language Translation (Google) API for Rust. Supports Async and Sync.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub type TranslationResult<T> = Result<T, TranslationError>;

#[derive(Debug)]
pub enum TranslationError {
    /// An error occurred while generating the token which is normally
    /// caused by an parsing error of an integer.
    ParseIntErr(String),
    /// An error occurred while sending the request to the server.
    HttpErr(String),
    /// An error occurred while parsing the url.
    UrlParseErr(String),
    /// An error occurred while parsing the json.
    /// This error is normally caused by an invalid json.
    JsonParseErr(String),
}