gist 0.7.0

A simple Github Gist client
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate serde_json;

#[derive(Deserialize, Debug)]
pub struct Response {
    pub html_url: String,
}

pub fn decode(res: &str) -> Result<Response, serde_json::Error> {
    serde_json::from_str(&res)
}