Rust API bindings for the Ulule v1 HTTP API. This library rely on rust Futures to allow asynchronous usage.
Put this in Cargo.toml
:
toml
[dependencies]
ulule = "1.0.0"
ulule_client = "0.0.3"
and this in the crate root:
rust
extern crate ulule;
extern crate ulule_client;
cargo test
Run file from examples with:
cargo run --example <example> -- <example flags> <example args>
To get started, create a client:
rust
let client = ulule_client::Client::new();
Search for the last three project created matching the term beer
with their owner:
```rust let p = search::Params::new() .limit(3) .withterm("beer") .withextrafields(vec!["owner".tostring()]);
// inside an actor system like actixrt let projects: search::Projects = actixrt::System::new("test").blockon(lazy(|| { ululeclient::search_projects(&client, Some(p)) })).unwrap(); ```