Paul Campbell
6acefda5d3
All checks were successful
Rust / build (push) Successful in 1m19s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 47s
21 lines
442 B
Rust
21 lines
442 B
Rust
//
|
|
use derive_more::{Constructor, Display};
|
|
|
|
use crate::{Hostname, RepoPath};
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Constructor, Display)]
|
|
#[display("{}:{}", host, repo_path)]
|
|
pub struct GitRemote {
|
|
host: Hostname,
|
|
repo_path: RepoPath,
|
|
}
|
|
|
|
#[cfg(test)]
|
|
impl GitRemote {
|
|
pub(crate) const fn host(&self) -> &Hostname {
|
|
&self.host
|
|
}
|
|
pub(crate) const fn repo_path(&self) -> &RepoPath {
|
|
&self.repo_path
|
|
}
|
|
}
|