refactor: added RepoKinds enum

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-07-17 11:01:46 +02:00
parent 36ac077fe7
commit 674edc240e
Signed by: cafkafk
GPG key ID: CDDC792F655251ED

View file

@ -52,6 +52,17 @@ pub enum RepoFlags {
Fast, Fast,
} }
#[derive(PartialEq, Eq, Serialize, Deserialize, Debug)]
#[non_exhaustive]
pub enum RepoKinds {
GitRepo,
GitHubRepo,
GitLabRepo,
GiteaRepo,
UrlRepo,
Link,
}
/// Represents the config.toml file. /// Represents the config.toml file.
/// ///
/// For diagrams of the underlying architecture, consult ARCHITECHTURE.md /// For diagrams of the underlying architecture, consult ARCHITECHTURE.md