Skip to content

Commit

Permalink
fix(common): Default trait for ApplicationSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Mar 1, 2015
1 parent fb0c3ff commit 445675d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Str for FlowType {

/// Represents either 'installed' or 'web' applications in a json secrets file.
/// See `ConsoleApplicationSecret` for more information
#[derive(RustcDecodable, RustcEncodable, Clone)]
#[derive(RustcDecodable, RustcEncodable, Clone, Default)]
pub struct ApplicationSecret {
/// The client ID.
pub client_id: String,
Expand All @@ -106,7 +106,7 @@ pub struct ApplicationSecret {

/// A type to facilitate reading and writing the json secret file
/// as returned by the [google developer console](https://code.google.com/apis/console)
#[derive(RustcDecodable, RustcEncodable)]
#[derive(RustcDecodable, RustcEncodable, Default)]
pub struct ConsoleApplicationSecret {
pub web: Option<ApplicationSecret>,
pub installed: Option<ApplicationSecret>
Expand Down

0 comments on commit 445675d

Please sign in to comment.