workyard_application/actions/create/
input.rs1use schemars::JsonSchema;
2use serde::Deserialize;
3use trine::NativePath;
4
5use crate::contracts::RepositoryInput;
6
7#[derive(Deserialize, JsonSchema)]
9#[serde(deny_unknown_fields)]
10pub struct CreateInput {
11 pub task: String,
13 #[serde(default)]
15 pub projects: Vec<NativePath>,
16 #[serde(default)]
18 pub repositories: Vec<RepositoryInput>,
19 pub workspace: Option<NativePath>,
21 #[serde(default)]
23 pub checkout: bool,
24 #[serde(default)]
26 pub no_fetch: bool,
27 pub remote: Option<String>,
29 pub from: Option<String>,
31}