Use helper struct to reduce template parameters

This commit is contained in:
Valentin Brandl
2022-08-19 10:34:37 +02:00
parent dbbbdad3fa
commit d4248df45a
4 changed files with 28 additions and 17 deletions

View File

@@ -28,8 +28,8 @@ pub(crate) trait Service: Sized + 'static {
}
}
#[derive(Deserialize, Serialize)]
pub(crate) enum FormService {
#[derive(Deserialize, Serialize, Clone, Copy)]
pub enum FormService {
#[serde(rename = "github")]
GitHub,
#[serde(rename = "gitlab")]