Skip to content

Commit ff385e5

Browse files
committed
fix(json): just add latest youtube code
It's good to see what actually changed in the json realm.
1 parent cfb8fae commit ff385e5

4 files changed

Lines changed: 790 additions & 377 deletions

File tree

gen/youtube3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ google-youtube3 = "0.0.1"
9797
```Rust
9898
extern crate hyper;
9999
extern crate "yup-oauth2" as oauth2;
100-
extern crate "rustc-serialize" as rustc_serialize;
100+
extern crate serde;
101101
extern crate "google-youtube3" as youtube3;
102102
use youtube3::Result;
103103
use std::default::Default;

gen/youtube3/cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ keywords = ["youtube", "google", "protocol", "web", "api"]
1717
hyper = "*"
1818
mime = "*"
1919
url = "*"
20-
rustc-serialize = "*"
20+
serde = "*"
21+
serde_macros = "*"
2122
yup-oauth2 = "*"

gen/youtube3/src/cmn.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ impl<T: Seek + Read> ReadSeek for T {}
4545

4646

4747
/// A utility type which can decode a server response that indicates error
48-
#[derive(RustcDecodable)]
48+
#[derive(Deserialize)]
4949
pub struct JsonServerError {
50-
error: String,
51-
error_description: Option<String>
50+
pub error: String,
51+
pub error_description: Option<String>
5252
}
5353

5454

0 commit comments

Comments
 (0)