splits-io-api
Bindings to the Splits.io API for Rust. Both native platforms and the web are supported.
Example Usage
// Create a Splits.io API client.
let client = new;
// Search for a runner.
let runner = search
.await?
.into_iter
.next
.context?;
assert_eq!;
// Get the PBs for the runner.
let first_pb = runner.pbs
.await?
.into_iter
.next
.context?;
// Get the game for the PB.
let game = first_pb.game.context?;
assert_eq!;
// Get the categories for the game.
let categories = game.categories.await?;
// Get the runs for the Any% category.
let runs = categories
.iter
.find
.context?
.runs
.await?;
assert!;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.