Skip to content

Commit 7c6f7d5

Browse files
committed
feat(params): additional fields and Result type
Now query params are handled completely, including clash check. Additionally, there is a new result type which encapsulates everything. It must be typed to the actual result type though, which can be a request result
1 parent 6c41660 commit 7c6f7d5

5 files changed

Lines changed: 411 additions & 58 deletions

File tree

gen/youtube3/src/cmn.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,17 @@ pub trait Delegate {
6767
pub struct DefaultDelegate;
6868

6969
impl Delegate for DefaultDelegate {}
70+
71+
72+
/// A universal result type used as return for all action method results.
73+
pub enum Result {
74+
/// The http connection failed
75+
HttpError(hyper::HttpError),
76+
77+
/// An additional, free form field clashed with one of the built-in optional ones
78+
FieldClash(&'static str),
79+
80+
81+
/// It worked !
82+
Success,
83+
}

0 commit comments

Comments
 (0)