1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use extern::burgundy; pub mod orgs; pub mod repos; pub struct GithubGet { crate path: burgundy::Path, } impl GithubGet { pub fn orgs(self) -> orgs::GithubGetOrgs { orgs::GithubGetOrgs { path: self.path.push(&"orgs"), } } pub fn repos(self) -> repos::GithubGetRepos { repos::GithubGetRepos { path: self.path.push(&"repos"), } } }