pub enum GitOrRepo { Git(String), Repo(String) } pub struct Package { name: String, authors: Vec<String>, tags: Vec<String>, version: u8, depends: Vec<(String, String)>, git_or_repo: GitOrRepo, } impl Package{ }