Skip to main content

workyard_application/contracts/
repository.rs

1use schemars::JsonSchema;
2use serde::Deserialize;
3use trine::NativePath;
4
5/// Repository selection and its per-participant overrides.
6#[derive(Deserialize, JsonSchema)]
7#[serde(deny_unknown_fields)]
8pub struct RepositoryInput {
9	/// Path to the backing repository selected by the caller.
10	pub path: NativePath,
11	/// Optional override for the participant’s directory name inside the task.
12	pub name: Option<String>,
13	/// Remote selected for branch resolution or fetch.
14	pub remote: Option<String>,
15	/// Starting revision for a newly created branch.
16	pub from: Option<String>,
17}