Skip to content

Commit

Permalink
feat(mbuild): media-upload doit() methods
Browse files Browse the repository at this point in the history
It's just a first step, and even though the generation works well,
I am still missing the right Rust code. Will have to simplify ...
  • Loading branch information
Byron committed Mar 8, 2015
1 parent de0c7a4 commit 5b2d8a7
Show file tree
Hide file tree
Showing 7 changed files with 1,038 additions and 362 deletions.
2 changes: 2 additions & 0 deletions etc/api/shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ api:
terms:
# how to actually do something with the API
action: doit
# when a resource is supposed to be uploaded
upload_action: upload
templates:
# all output directories are relative to the one set for the respective API
- source: README.md
Expand Down
6 changes: 6 additions & 0 deletions gen/youtube3/src/cmn.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// COPY OF 'src/rust/cmn.rs'
// DO NOT EDIT
use std::marker::MarkerTrait;
use std::io::{Read, Seek};
use std::borrow::BorrowMut;

/// Identifies the Hub. There is only one per library, this trait is supposed
/// to make intended use more explicit.
Expand Down Expand Up @@ -30,3 +32,7 @@ pub trait Part: MarkerTrait {}
/// Identifies types which are only used by other types internally.
/// They have no special meaning, this trait just marks them for completeness.
pub trait NestedType: MarkerTrait {}

/// A utility to specify reader types which provide seeking capabilities too
pub trait ReadSeek: Seek + Read {}
impl<T: Seek + Read> ReadSeek for T {}
Loading

0 comments on commit 5b2d8a7

Please sign in to comment.