Skip to content

Commit

Permalink
feat(result): generic result type
Browse files Browse the repository at this point in the history
... and we actually add additional fields to our fields list.
  • Loading branch information
Byron committed Mar 9, 2015
1 parent 7c6f7d5 commit da300e0
Show file tree
Hide file tree
Showing 5 changed files with 404 additions and 158 deletions.
5 changes: 2 additions & 3 deletions gen/youtube3/src/cmn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,13 @@ impl Delegate for DefaultDelegate {}


/// A universal result type used as return for all action method results.
pub enum Result {
pub enum Result<T = ()> {
/// The http connection failed
HttpError(hyper::HttpError),

/// An additional, free form field clashed with one of the built-in optional ones
FieldClash(&'static str),


/// It worked !
Success,
Success(T),
}
Loading

0 comments on commit da300e0

Please sign in to comment.