Skip to content
Clone

feat(export): add repo sync export

zhenyi committed
parent 49ae4cb commit b79b838 Browse files

1 file changed

+24 −0

Added lib/export/repo/sync.rs View lib/export/repo/sync.rs
@@ -0,0 +1,24 @@
1use serde::{Deserialize, Serialize};
2use utoipa::ToSchema;
3use uuid::Uuid;
4
5#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
6pub struct SyncStatus {
7 pub repo_id: Uuid,
8 pub branches_total: i64,
9 pub tags_total: i64,
10 pub commits_total: i64,
11 pub primary_language: Option<String>,
12 pub size: i64,
13 pub last_pushed_at: Option<String>,
14 pub synced_at: String,
15}
16
17#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
18pub struct SyncResult {
19 pub repo_id: Uuid,
20 pub branches_added: i64,
21 pub tags_added: i64,
22 pub commits_added: i64,
23 pub size_bytes: i64,
24}