gitlib/jsonb/
job_config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};
use uuid::Uuid;
use crate::enums::job_type::JobType;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct JobConfig {
    pub name: String,
    pub docker_image: Option<String>,
    pub job_type: JobType,
    pub commands: Option<Vec<String>>,
    pub branch: Option<String>,
    pub credentials: Option<Uuid>,
}