Crate bing_dict

Crate bing_dict 

Source
Expand description

§bing-dict

Use Bing Dictionary to translate words and phrases between English and Chinese

Version Documentation License

§Example

#[tokio::main]
async fn main() {
    let result = bing_dict::translate("dictionary").await.unwrap().unwrap();
    println!("{result}");
}

§License

GNU General Public License v3.0

Structs§

Paraphrase
The paraphrase of a word / phrase

Enums§

Error

Functions§

translate
Translate a word / phrase. Return Ok(None) if the word can not be found in Bing Dictionary