faclair 0.1.0

HTTP Client for the learngaelic.scot Scottish Gaelic dictionary
Documentation

Faclair

This is an http client for the learngaelic.scot Scottish Gaelic dictionary.

Example

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(())
}