1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! Activity interface use hyper::client::Connect; use Github; use stars::Stars; pub struct Activity<C> where C: Clone + Connect, { github: Github<C>, } impl<C: Clone + Connect> Activity<C> { #[doc(hidden)] pub fn new(github: Github<C>) -> Self { Self { github } } /// return a reference to starring operations pub fn stars(&self) -> Stars<C> { Stars::new(self.github.clone()) } }