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
use crate::langs::Lang;

/// Encapsulates a translated text and its source and target languages.
#[derive(Debug, Clone, PartialEq)]
pub struct Translation<'a> {
    pub text: String,
    pub src: &'a str,
    pub src_lang: &'a Lang,
    pub target_lang: &'a Lang,
}