diff --git a/src/server/config.rs b/src/server/config.rs index bc2fb58e..a7baccdd 100644 --- a/src/server/config.rs +++ b/src/server/config.rs @@ -87,25 +87,28 @@ impl Display for Repo { write!(f, "{} - {}", self.repo, self.branch) } } -#[derive(Clone)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct ForgeName(pub String); impl Display for ForgeName { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.0) } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct Hostname(pub String); impl Display for Hostname { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.0) } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct User(pub String); impl Display for User { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.0) } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct ForgeDetails { pub name: ForgeName, pub forge_type: ForgeType, @@ -124,25 +127,28 @@ impl From<(&ForgeName, &Forge)> for ForgeDetails { } } } -#[derive(Clone)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct RepoName(pub String); impl Display for RepoName { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.0) } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct RepoPath(pub String); impl Display for RepoPath { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.0) } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct BranchName(pub String); impl Display for BranchName { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.0) } } +#[derive(Clone, Debug, PartialEq, Eq)] pub struct RepoDetails { pub name: RepoName, pub repo: RepoPath,