// use derive_more::{Constructor, Display}; use git_next_core::{Hostname, RepoPath}; #[derive(Clone, Debug, PartialEq, Eq, Constructor, Display)] #[display("{}:{}", host, repo_path)] pub struct GitRemote { host: Hostname, repo_path: RepoPath, } impl GitRemote { pub const fn host(&self) -> &Hostname { &self.host } pub const fn repo_path(&self) -> &RepoPath { &self.repo_path } }