| Crates.io | faclair |
| lib.rs | faclair |
| version | 0.1.0 |
| created_at | 2021-06-08 16:59:36.844015+00 |
| updated_at | 2021-06-08 16:59:36.844015+00 |
| description | HTTP Client for the learngaelic.scot Scottish Gaelic dictionary |
| homepage | |
| repository | |
| max_upload_size | |
| id | 407874 |
| size | 142,688 |
This is an http client for the learngaelic.scot Scottish Gaelic dictionary.
use faclair::{self, Options, Language};
fn main() -> Result<(), faclair::Error> {
let results = faclair::search("saor")?;
for result in results {
println!("{} -> {}", result.headword, result.translation);
}
let options = Options::default();
options.whole_word();
options.language(Language::Both);
let results = faclair::search_with_options("saor", options)?;
for result in results {
println!("{} -> {}", result.headword, result.translation);
}
Ok(())
}