Expand description
bullettrain create provides client for bullet-train.io API.
§Example
use bullettrain::{Client,Value};
let client = Client::new(API_KEY);
if client.feature_enabled("test_feature")? {
if let Some(Value::Int(i)) = client.get_value("integer_feature")? {
println!("integer value: {}", i);
}
// ...
}Modules§
Structs§
- Client
- Provides various methods to interact with BulletTrain API.
- Feature
- Contains core information about feature.
- Flag
- Contains information about Feature and it’s value.
- Trait
- Holds information about User’s trait.
- User
- Holds identity information.
Enums§
- Value
- Represents remote config value.
Constants§
- DEFAULT_
BASE_ URI - Default address of BulletTrain API.