diff --git a/src/videos/mod.rs b/src/videos/mod.rs new file mode 100644 index 00000000000..86790a92ca4 --- /dev/null +++ b/src/videos/mod.rs @@ -0,0 +1,3 @@ +pub use self::service::*; + +mod service; \ No newline at end of file diff --git a/src/videos.rs b/src/videos/service.rs similarity index 61% rename from src/videos.rs rename to src/videos/service.rs index 684f0ecf61a..5bb2dc15add 100644 --- a/src/videos.rs +++ b/src/videos/service.rs @@ -2,9 +2,13 @@ use std::cell::RefCell; use std::borrow::BorrowMut; use std::marker::PhantomData; +use rustc_serialize; + use hyper; -pub struct VideosService<'a, C, NC> + +/// The videos service - provides actual functionality through builders. +pub struct Service<'a, C, NC> where NC: 'a, C: 'a { @@ -13,12 +17,12 @@ pub struct VideosService<'a, C, NC> _m: PhantomData } -impl<'a, C, NC> VideosService<'a, C, NC> +impl<'a, C, NC> Service<'a, C, NC> where NC: hyper::net::NetworkConnector, C: BorrowMut> + 'a { - pub fn new(client: &'a RefCell) -> VideosService<'a, C, NC> { - VideosService { + pub fn new(client: &'a RefCell) -> Service<'a, C, NC> { + Service { client: client, _m: PhantomData, }