faclair

Crates.iofaclair
lib.rsfaclair
version0.1.0
sourcesrc
created_at2021-06-08 16:59:36.844015
updated_at2021-06-08 16:59:36.844015
descriptionHTTP Client for the learngaelic.scot Scottish Gaelic dictionary
homepage
repository
max_upload_size
id407874
size142,688
Paul Woolcock (pwoolcoc)

documentation

https://docs.rs/faclair

README

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(())
}
Commit count: 0

cargo fmt