summaryrefslogtreecommitdiff
path: root/server/api/src/api_model.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-02-20 22:53:27 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-02-20 22:53:27 +0100
commite940d84f69e3fd627731d5d3f698d6f838797862 (patch)
tree779eefcde993e22c0a69c18a3cb6e1cb9d17aad3 /server/api/src/api_model.rs
parentbf025b4977543a371df9dbdddfe9cc2f02f2a8d0 (diff)
WIPWIP
Diffstat (limited to 'server/api/src/api_model.rs')
-rw-r--r--server/api/src/api_model.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/api/src/api_model.rs b/server/api/src/api_model.rs
index 3760f9e..d769a98 100644
--- a/server/api/src/api_model.rs
+++ b/server/api/src/api_model.rs
@@ -178,6 +178,8 @@ pub struct Project {
pub description: String,
#[schema(example = "ssh://git.example.org/srv/git/")]
pub remote: String,
+ #[schema(example = "b3BlbNNz...AQIDBA==")]
+ pub remote_key_abbrev: String,
#[schema(example = "main")]
pub main_branch: String,
pub users: Vec<ProjectUserEntry>,
@@ -191,6 +193,8 @@ pub struct ProjectData<'r> {
pub description: Option<&'r str>,
#[schema(example = "ssh://git.example.org/srv/git/")]
pub remote: Option<&'r str>,
+ #[schema(example = "b3BlbNNz...AQIDBA==")]
+ pub remote_key: Option<String>,
#[schema(example = "main")]
pub main_branch: Option<&'r str>,
}
@@ -244,7 +248,7 @@ pub struct UserKeyData<'r> {
#[schema(example = "ssh-rsa")]
pub kind: &'r str,
#[schema(example = "AAAAfoobar==")]
- pub data: &'r str,
+ pub data: String,
#[schema(example = "user@host 1970-01-01")]
pub comment: Option<&'r str>,
}