extern crate gitapi_rs as Api; use Api::core::engine::Engine; use Api::http::path::Path; fn main() { let mut engine = Engine::new(); let path = Path::new().slash(&"repos".to_owned()).slash(&"user".to_owned()).slash(&"repo_name".to_owned()).slash(&"branches".to_owned()).ok(); let profile = engine.get(&path).unwrap(); println!("profile: {:?}", profile); }