[−][src]Crate algorithmia
Algorithmia client library
Examples
use algorithmia::Algorithmia; // Initialize with an API key let client = Algorithmia::client("111112222233333444445555566")?; let moving_avg = client.algo("timeseries/SimpleMovingAverage/0.1"); // Run the algorithm using a type safe decoding of the output to Vec<f64> // since this algorithm outputs results as a JSON array of numbers let input = (vec![0,1,2,3,15,4,5,6,7], 3); let result: Vec<f64> = moving_avg.pipe(&input)?.decode()?; println!("Completed with result: {:?}", result);
Modules
algo | API client for calling Algorithmia algorithms |
data | API client for managing data through Algorithmia |
entrypoint | Algorithmia entrypoint for authoring Rust-based algorithms |
error | Error types |
prelude | Reexports of the most common types and traits |
Structs
Algorithmia | The top-level struct for instantiating Algorithmia client endpoints |
Body | The body of a |
Url | A parsed URL record. |
Traits
IntoUrl | A trait to try to convert some type into a |