git_next_core/git/git_remote.rs
1//
2use derive_more::{Constructor, Display};
3
4use crate::{Hostname, RepoPath};
5
6#[derive(Clone, Debug, PartialEq, Eq, Constructor, Display)]
7#[display("{}:{}", host, repo_path)]
8pub struct GitRemote {
9 host: Hostname,
10 repo_path: RepoPath,
11}
12
13#[cfg(test)]
14impl GitRemote {
15 pub(crate) const fn host(&self) -> &Hostname {
16 &self.host
17 }
18 pub(crate) const fn repo_path(&self) -> &RepoPath {
19 &self.repo_path
20 }
21}