Skip to content
Clone

refactor(repo): remove sync types (inlined)

zhenyi committed
parent ea89b67 commit 1059658 Browse files

1 file changed

+0 −24

Deleted lib/repo/features/sync/types.rs
@@ -1,24 +0,0 @@
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}