git-next/crates/git/src/git_remote.rs

17 lines
405 B
Rust
Raw Normal View History

use git_next_config::{Hostname, RepoPath};
#[derive(Clone, Debug, PartialEq, Eq, derive_more::Constructor, derive_more::Display)]
2024-05-14 16:28:17 +01:00
#[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
}
}