Skip to content

Commit 5b2d8a7

Browse files
committed
feat(mbuild): media-upload doit() methods
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 ...
1 parent de0c7a4 commit 5b2d8a7

7 files changed

Lines changed: 1038 additions & 362 deletions

File tree

etc/api/shared.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ api:
1818
terms:
1919
# how to actually do something with the API
2020
action: doit
21+
# when a resource is supposed to be uploaded
22+
upload_action: upload
2123
templates:
2224
# all output directories are relative to the one set for the respective API
2325
- source: README.md

gen/youtube3/src/cmn.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// COPY OF 'src/rust/cmn.rs'
22
// DO NOT EDIT
33
use std::marker::MarkerTrait;
4+
use std::io::{Read, Seek};
5+
use std::borrow::BorrowMut;
46

57
/// Identifies the Hub. There is only one per library, this trait is supposed
68
/// to make intended use more explicit.
@@ -30,3 +32,7 @@ pub trait Part: MarkerTrait {}
3032
/// Identifies types which are only used by other types internally.
3133
/// They have no special meaning, this trait just marks them for completeness.
3234
pub trait NestedType: MarkerTrait {}
35+
36+
/// A utility to specify reader types which provide seeking capabilities too
37+
pub trait ReadSeek: Seek + Read {}
38+
impl<T: Seek + Read> ReadSeek for T {}

0 commit comments

Comments
 (0)