From 674edc240e9c39a3197b2b39f6495ee0d9feff51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Mon, 17 Jul 2023 11:01:46 +0200 Subject: [PATCH] refactor: added RepoKinds enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- src/git.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/git.rs b/src/git.rs index 7eee2c5..705d93c 100644 --- a/src/git.rs +++ b/src/git.rs @@ -52,6 +52,17 @@ pub enum RepoFlags { Fast, } +#[derive(PartialEq, Eq, Serialize, Deserialize, Debug)] +#[non_exhaustive] +pub enum RepoKinds { + GitRepo, + GitHubRepo, + GitLabRepo, + GiteaRepo, + UrlRepo, + Link, +} + /// Represents the config.toml file. /// /// For diagrams of the underlying architecture, consult ARCHITECHTURE.md