algorithmia 1.0.0

Client for calling algorithms hosted on the Algorithmia marketplace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// //! Helpers to standardize decoding Algorithmia JSON responses

// use error::{Error};
// use rustc_serialize::{json, Decodable};

// pub fn decode<T: Decodable>(res_json: &str) -> Result<T, Error> {
//     match json::decode::<T>(res_json) {
//         Ok(result) => Ok(result),
//         Err(err) => Err(Error::DecoderErrorWithContext(err, res_json.into())),
//     }
// }